move accounts in different OU in AD

Hi,

OneIM version 8.2.1

I have a requirement to move accounts in different OU in AD. We are provisioning the users through the PowerShell script, and users are getting provisioned into AD OU (OU=Staging ). Now I have a requirement to move the accounts from OU=Staging into different OU ( OU=Employee). If accounts are creating into OU=Staging then it should automatically move into OU=Employee.

Can anyone help me with the sample code?

Thanks,

Parents
  • I think you don't need any code for this:
    Set "search criteria for employee assignment" on the AD domain object
    Create "account definition"
    Set "IT Operating data mapping" on "account definition": ADSAccount.UID_ADSContainer (ex. ad.local/employees)
    Have a look at the following configuration parameter: TargetSystem\ADS\PersonAutoDefault (choose the right setting for your scenario)

Reply
  • I think you don't need any code for this:
    Set "search criteria for employee assignment" on the AD domain object
    Create "account definition"
    Set "IT Operating data mapping" on "account definition": ADSAccount.UID_ADSContainer (ex. ad.local/employees)
    Have a look at the following configuration parameter: TargetSystem\ADS\PersonAutoDefault (choose the right setting for your scenario)

Children