How we can change the ou?

What are ways through which we can change the ou of the identities.

Hi @Shashikiran31

Use AC_NewParent in the provisioning plan as an attribute and the value is the OU path.

1 Like

Hi @Shashikiran31

There are multiple instances where you can update the plan to update the OU of the account.

  1. add like below to the plan in before provisioning rule
For example, if your new ou is :

newOU = "OU=Disabled,DC=test,DC=com";

Create a plan to provision the user to new OU:

List li = new ArrayList();

AccountRequest accreq = plan.getAccountRequest();
accreq.add(new AttributeRequest("AC_NewParent",ProvisioningPlan.Operation.Set,newOU));
accreq.setNativeIdentity(nativeIdentityAD);
li.add(accreq);

plan.setAccountRequests(li);

  1. add the AC_NewParent in the provisioning policy (if ou changes during specific operation/use case) and value to corresponding OU (using rule or script if there is a calculation)

Hope this helps!

Thanks

2 Likes

@Shashikiran31 along with my above response, below thread is useful to go through for your question:

Thanks

Create a new Attribute Req and pass new OU in third parameter and add it to the plan

AttributeRequest parReq = new AttributeRequest("AC_NewParent", ProvisioningPlan.Operation.Set, newOU);

1 Like

Hi @Shashikiran31 ,

May I know for which application you are trying? Is it for AD or for LDAP?

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