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

Get service account owner accountid

dhanashree_m
New Contributor III
New Contributor III

Can we fetch service account owner dn in create or update account json ?

User can have a User account and when she is assigned as service account owner, I need to send user account dn(stored in accountid) to target ? is there a variable for this inCreate/update ?

5 REPLIES 5

sundas7
Regular Contributor II
Regular Contributor II

Hi

"${ServiceAccountOwnerMap.get('USEROWNERS').get('1').collect{it.customproperty.toString()}[0]}",

where we have mapped the CP to DN .

Hope it helps.

 

Thanks

Shyam

sahajranajee
Saviynt Employee
Saviynt Employee

Hello,

Please use the following expression :
ServiceAccountOwnerMap.get('USEROWNERS').get('1').collect{it.<attribute on user profile storing dn value of owner>.toString()}[0]

example : ServiceAccountOwnerMap.get('USEROWNERS').get('1').collect{it.username.toString()}[0]

 

 

 


Regards,
Sahaj Ranajee
Sr. Product Specialist

dhanashree_m
New Contributor III
New Contributor III

We are already using this for Customproperty approach, wanted to know if there is a way to fetch accountid directly as CP approach is dependent on job run.

You can call get user API in provisioning & populate accountid from response instead waiting for import job


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

sahajranajee
Saviynt Employee
Saviynt Employee

Hello,

Ownership assigned from Saviynt is assigned as a user in Saviynt. This is why there is a need/prerequisite to populate the DN data somewhere on the user attribute which can eventually be fetched in the provisioning JSONs.

 


Regards,
Sahaj Ranajee
Sr. Product Specialist