Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

AD enableaccountjson

asp
Regular Contributor
Regular Contributor

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,

4 REPLIES 4

dgandhi
All-Star
All-Star

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.

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

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.

asp
Regular Contributor
Regular Contributor

Thanks, so you are saying you can map the attributes that need to be updated in the 'AFTERMOVEACTIONS' section? 

Yes. Please give that a try and see if that works.

Thanks

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.

dgandhi
All-Star
All-Star

https://docs.saviyntcloud.com/bundle/AD-v2021x/page/Content/Configuring-the-Integration-for-Provisio...

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.