I am trying to create a custom command that handles the process of converting a user account for a temp to a FTE. This needs to:
1. move the user to a new OU.
2. change properties of the user.
My problem is that the source OU and destination OU's have different User property patterns. The command moves the user fine, but when it tries to rename the user or change other properties, it errors out on the property patterns as if the user was still in the source OU.
How do I get Adaxes to use the property patterns of the new OU instead of the old?
If user is located under "expiring accounts" OU
--Move the user to "xxx" OU
--Modify the user: set employee type to...... etc.