Create AD account specific OU

Hi, 

Under customization / Organisation Unit i have created a new form for a creating new users. This form is specifically for Service Accounts. 

I have also created some Policies for setting samaccountname , First Name , Last Name etc that i have assigned to the OU where the accounts would in the end up living. 

My question is. Is it possible that when i open this new form no matter what OU i am in that it knows to create the account in the OU that i want it to end up in and also apply the policies assigned? Right now in order to have the policies applied i have to start the new user creation process in that OU. 

I did think about a managed unit but i guess that also needs the account to have been created first 

Thanks in advance 

Parents
  • The way I have handled this in the past is to assign my custom form an identifier of some kind which you can configure into the advanced properties.  That identifier is passed with the $Request payload as a Control which you can read back from a policy script (OnPreCreateHandler) via $Request.GetInControl.  If the $Request is seen to be coming from your special form, your policy script can re-direct the object creation by assigning a new parent container by way of $Request.ChangeParentDN($MyNewContainer)

Reply
  • The way I have handled this in the past is to assign my custom form an identifier of some kind which you can configure into the advanced properties.  That identifier is passed with the $Request payload as a Control which you can read back from a policy script (OnPreCreateHandler) via $Request.GetInControl.  If the $Request is seen to be coming from your special form, your policy script can re-direct the object creation by assigning a new parent container by way of $Request.ChangeParentDN($MyNewContainer)

Children