Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Retrieve attribute value from account

Huddos
Regular Contributor
Regular Contributor

Hi

I have AD updateaccountjson which is used for updating a mixture of account types.

For service and generic accounts a dynamic variable called "description" has been defined, however for other accounts which are not manually provisioned I either want to retrieve the existing value from the account and then update or not update it at all. Example below which updates the description correctly when updated via managed service accounts (account types service and generic) but will wipe the description if updating another account type (employee) via user update rule:

"description" : "${if(ServiceAccountOwnerMap.get('ServiceAccountType') =='Service Account' || ServiceAccountOwnerMap.get('ServiceAccountType') =='Generic Account') {Description}}"

E.g if description attribute is not available in the update, don't update the attribute in AD.

 

TIA

 

5 REPLIES 5

rushikeshvartak
All-Star
All-Star
  • In which json block its added ?

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Huddos
Regular Contributor
Regular Contributor

I need to retrieve the existing description value from the actual account record as the description attribute/column is not available for non service accounts and I don't want to overwrite it with ''. I need to post the same value in the record or somehow not post description at all for non service accounts.

  • In which json block its added ?

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

It's not added for non-service accounts provisioning, however the initial import of AD accounts would have picked up the description and updated the Saviynt account via importaccountjson. I'm trying to avoid overwriting it with blank.

 

Use another custom property for same


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.