Click HERE to see how Saviynt Intelligence is transforming the industry. |
02/09/2024 12:00 AM
How to update service account owner using UpdateAccountJSON
For Example:
Service Account Owner
This owner's siteid which is Azure account id as shown below need to be passed to target
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"
}
}
]
}
Solved! Go to Solution.
02/13/2024 07:51 AM
Hello @JK,
Currenlty this is not supported, please raise the enhancement for the same in the idea portal.
Thanks.
02/13/2024 01:19 PM
not supported , refer idea raised https://ideas.saviynt.com/ideas/EIC-I-5417
02/16/2024 12:29 PM
We have achieved this using requestAccessAttributes.get('USEROWNERKEYADDED')
02/28/2024 10:29 AM
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
02/28/2024 10:44 AM
We have used above variable in JSON and it worked
02/29/2024 12:39 AM
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.