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

Update service account owner JSON

JK
New Contributor II
New Contributor II

How to update service account owner using UpdateAccountJSON

For Example:

Service Account Owner

Jagadish_0-1707465162818.png

This owner's siteid which is Azure account id as shown below need to be passed to target 

Jagadish_1-1707465406860.png

 

I have tried multiple ways with below vairable, but its not working

UpdateAccountJSON:

{
"call": [

{
"name": "call2UpdateAccountOwner",
"connection": "userAuth",
"url": "https://graph.microsoft.com/v1.0/users/${account.accountID}/manager/\\$ref",
"httpMethod": "PUT",
"httpContentType": "application/json",
"httpParams": "{\"@odata.id\":\"https://graph.microsoft.com/v1.0/users/${ServiceAccountOwnerMap.get('USEROWNERS').get('1').collect{i..."}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"successResponses": {
"statusCode": [
204
]
},
"unsuccessResponses": {
"odata~dot#error.code": "Request_BadRequest,Authentication_MissingOrMalformed,Request_ResourceNotFound,Authorization_RequestDenied,Authentication_Unauthoriz"
}
}
]
}

 

6 REPLIES 6

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @JK,

Currenlty this is not supported, please raise the enhancement for the same in the idea portal.

Thanks.

If you find the above response useful, Kindly Mark it as "Accept As Solution".

rushikeshvartak
All-Star
All-Star

not supported , refer idea raised https://ideas.saviynt.com/ideas/EIC-I-5417


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

We have achieved this using requestAccessAttributes.get('USEROWNERKEYADDED')


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

KirtiAjrot
Saviynt Employee
Saviynt Employee

hi @rushikeshvartak , 

Can you mention here exactly how the binding : requestAccessAttributes.get('USEROWNERKEYADDED') was used by you in this context?

There are other similar threads where the binding used by Jagadish is mentioned to be working , however I am unsure if it works.. 

example 

https://forums.saviynt.com/t5/identity-governance/creating-account-service-account-in-azure-ad-with-...

KA

We have used above variable in JSON and it worked


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

Okay , may be with some other json but definitely not with the Azure URL in question as the binding requestAccessAttributes.get('USEROWNERKEYADDED') returns userkey of the owner. 

KA