Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/11/2023 10:42 AM
Hi all,
We need to update the user's AD sAMAccountName, when their firstname/lastname changes in the source system. I can create a 'user update rule' to check if there is a name change, but how do I call the 'account name rule' on the AD endpoint to trigger the re-calculation of the new AD account name (sAMAccountName) that is based on the user's new firstname/lastname? Is there a way to handle this in the 'updateAccountJSON' for AD? This would be the user's regular AD account (not service accounts).
Thanks!
04/11/2023 07:48 PM
Hi @asp
Can you define that logic in update account JSON if that helps to meet your use case?
"samaccountname": "${user.firstname} - ${user.lastname}",
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.
04/12/2023 07:20 AM
I can, but how do I check for uniqueness within the update account JSON? I will need to make sure that 'firstname-lastname' is not already in use.
04/11/2023 07:53 PM
If you change sAMAccountName it will also change DN isn't it ? what is your current account name & account id field mapped to AD Attribute in Saviynt
04/11/2023 11:08 PM
Hi @rushikeshvartak ,
sAMAccountName calculate separately and DN contains CN value, would it still modify sAMAccountName and In which case it will modify?
04/12/2023 01:46 AM
Hi,
Please do mapping for samaccountnamein updateaccountjson and that should do the trick, e.g
"sAMAccountName": "${user.firstname} ${user.lastname}",
then let's say user's firstname and lastname are f1 and l1 initially then samaccountname was formed as f1 l1. Now, you updated the firstname to f2 then once the user update rule triggers the update account task it will update samaccountname to f2 l1.
Once you run the AD import, this will get reflected in Saviynt as well.
Thanks,
Sunanda Bishnoi
04/12/2023 10:57 AM
How do I check for samaccountname uniqueness in updateaccountjson? What if f2 l1 is already taken?