and more in a single search tool across platforms. Read the announcement here. |
04/10/2023 02:53 PM
Hi
Is it possible to update AD account attributes, while doing an account enable operation? I have the EnableAccountJSON configured and am able to correctly enable it, but would like to update other user attributes at the same time.
Thanks,
Solved! Go to Solution.
04/10/2023 06:52 PM
Can you check if below sample helps?
Example 2: To define the actions to be performed after an account is moved, add the following entry in the JSON.
{ ... "MOVEDN": "YES", "AFTERMOVEACTIONS": {"userAccountControl": "512", "userPassword": "${randomPassword}" } }
{
"USEDNFROMACCOUNT": "YES",
"MOVEDN": "YES",
"ATTRIBUTESTOCHECK": {
"useraccountcontrol": "514",
"samaccountname": "${user.customproperty29}"
},
"ENABLEACCOUNTOU": "OU=XXXXXXXX,OU=Admin,DC=XXXXX,DC=XXXX,DC=XXX",
"AFTERMOVEACTIONS": {
"useraccountcontrol": "512",
"description": "${user.locationdesc} - ${user.title}",
"manager": "${if(user?.manager!=null) {manager?.customproperty21} else {''}}"
}
}
Thanks
04/10/2023 07:28 PM
Thanks, so you are saying you can map the attributes that need to be updated in the 'AFTERMOVEACTIONS' section?
04/10/2023 07:31 PM
Yes. Please give that a try and see if that works.
Thanks
04/10/2023 06:53 PM