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

Update service account owner JSON

Jagadish
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 @Jagadish,

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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

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


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

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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

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