AD OU Move through BeforeModify Script

Hi All,

Is it possible to achieve AD OU moves via AD Before Modify Rule? Or BeforeProvisioningRule/SSBP from SailPoint is the only option?

I’ve tried doing so by setting the AC_NewParent and AC_NewName values in the modified provisioning plan from the before modify script, and they were added into the plan as well when checked the logs, however there aren’t traces of OU moves accomplished in AD.

The Active Directory action in Workflows has a Move User command. You could trigger that based on identity or account attribute changes.

You can use the SSBPR to trigger the AC_NewParent when other operations are already triggered for Active Directory.

You can use the Update Account provisioning policy to set AC_NewParent as well.

I don’t think you should use the connector rules.

Can you share more about your use case?

Hello Varshini. I would not use the Before Modify connector rule to add AC_NewParent/AC_NewName. These are special AD provisioning attributes that should be added before the request reaches the connector, so adding them inside Before Modify may show in the request but won’t be processed as an OU move.

I would use a Before Provisioning Rule/SSBP or the Update Account provisioning policy instead. As @MattUribe mentioned, the Workflow Move User action is another option.

A Before Modify rule could also move the object directly with PowerShell, but that would be custom connector-side logic rather than using AC_NewParent.

Hi @varshini303 - another option if you are doing a move on an Enable or Disable is to add a provisioning policy to AD. Here is an example:

{

    "name": "Account Enable",

    "description": null,

    "usageType": "ENABLE",

    "fields": [

        {

            "name": "AC_NewParent",

            "transform": {

                "type": "static",

                "attributes": {

                    "adou": {

                        "type": "identityAttribute",

                        "attributes": {

                            "name": "adorgunit"

                        }

                    },

                    "value": "$!adou,DC=DomainX,DC=local"

                }

            },

            "attributes": {},

            "isRequired": false,

            "type": "string",

            "isMultiValued": false

        }

    ]

}

Hi @varshini303

As other colleagues mentioned, you could use it using SSBP or before provisioning rule or even workflow.
If you really want this to be achieved by before connector rule, then you will need a powershell script on the iqservice to support before connector rule and to move the accounts.
This approach would work but then ISC will not have the knowledge about ou movement unless aggregation is run and there too you might observe the wierd behaviour as ISC may not understand the ou movement so that needs to be checked.

Thank You.
Regards

Vikas.

Hi @varshini303

What are your use cases for wanting to changes OUs? We will be able to give a more difinitive answer

No, AD OU moves are typically not supported from an AD Before Modify Rule by simply adding AC_NewParent and AC_NewName to the provisioning plan.

For an AD move operation, SailPoint’s AD connector expects these attributes to be present before the provisioning request is sent to the connector, which is why a Before Provisioning Rule (IIQ) or Services Standard Before Provisioning Rule (SSBP) / Before Provisioning workflow logic in ISC is the recommended approach.

A few points to check:

  • Verify that the plan contains an actual Modify operation against the AD account.
  • Ensure AC_NewParent contains the target OU DN and AC_NewName contains the RDN (e.g., CN=John Smith).
  • The AD service account must have permissions to move objects between OUs.
  • Check connector debug logs for any LDAP ModifyDN/Move operation being generated.

If the values are only being injected in the AD Before Modify Rule, the connector may have already built the LDAP request, so the move attributes are ignored even though they appear in the logs.

Recommendation: Implement the OU move logic in the Before Provisioning Rule / SSBP so AC_NewParent and AC_NewName are present in the plan before connector processing begins.