Active Directory manager sync - block for inactive users

Hey all, I’m working through a use case at a client where they don’t want manager to be synced down into AD accounts for inactive users. I’ve looked at the few other threads about this topic but I’m seeing different behavior in my transform results than what others have seen.

{
    "id": "e6346a99-b5d0-4b1b-bd4a-bd417b79c4b3",
    "name": "managerDn",
    "type": "conditional",
    "attributes": {
        "expression": "$lcs eq inactive",
        "positiveCondition": "",
        "negativeCondition": "$managerDN",
        "managerDn": {
            "attributes": {
                "name": "Cloud Services Deployment Utility",
                "operation": "getReferenceIdentityAttribute",
                "uid": "manager",
                "attributeName": "dn"
            },
            "type": "rule"
        },
        "lcs": {
            "attributes": {
                "name": "cloudLifecycleState"
            },
            "type": "identityAttribute"
        }
    },
    "internal": false
}

What is happening is on the inactive users, IDN is populating “None” on inactive users and trying to push that down into the AD account. I get this error from IDN on the accounts and the modify action fails.

["Error(s) reported back from the IQService - Failed to update attributes for identity CN\u003dCrystal Schmidt,OU\u003dTokyo,OU\u003dAsia-Pacific,OU\u003dDemo,DC\u003dseri,DC\u003dsailpointdemo,DC\u003dcom. A constraint violation occurred.\n"]

Does anyone have any insight as to what might be happening here?

Hi @WyssAJ01,

Have you tried using the Null value as such?

{
    "id": "e6346a99-b5d0-4b1b-bd4a-bd417b79c4b3",
    "name": "managerDn",
    "type": "conditional",
    "attributes": {
        "expression": "$lcs eq inactive",
        "positiveCondition": null,
        "negativeCondition": "$managerDN",
        "managerDn": {
            "attributes": {
                "name": "Cloud Services Deployment Utility",
                "operation": "getReferenceIdentityAttribute",
                "uid": "manager",
                "attributeName": "dn"
            },
            "type": "rule"
        },
        "lcs": {
            "attributes": {
                "name": "cloudLifecycleState"
            },
            "type": "identityAttribute"
        }
    },
    "internal": false
}

Instead of passing None, may be pass null or empty string.

@WyssAJ01 or maybe pass current manager in Active Directory, so there will be nothing to sync and It will be filtered. I have not had success when I tried to clear data (Overriding an attribute which has a value with empty or null).

Just to close the loop on this in case anyone else has this issue, is we used a static transform that brings in managerDn and cloudLifecycleState and uses the below velocity code.

"value": "#if($cloudLifecycleState != 'terminated')$managerDn#end"

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.