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

Manager not getting populated using create account for Azure rest connection

venkat
New Contributor III
New Contributor III

we can create azure accounts successfully with first call. we are not able to populate manager using the second call using azure provisioning rest connections. below is the connection

{"accountIdPath":"call1.message.id","dateFormat":"yyyy-MM-dd'T'HH:mm:ssXXX","responseColsToPropsMap":{"displayName":"call1.message.displayName~#~char","name":"call1.message.userPrincipalName~#~char"},"call":[{"name":"call1","connection":"AzureADProvisioning","url":"https://graph.microsoft.com/v1.0/users","httpMethod":"POST","httpParams":"{\"accountEnabled\":true,\"displayName\":\"${user.firstname+','+user.lastname}\",\"mailNickname\":\"${user.customproperty29+'CS'}\",\"userPrincipalName\":\"${user.customproperty29+'CS'}@ppxxxxx.com\",\"passwordProfile\":{\"forceChangePasswordNextSignIn\":true,\"ForceChangePasswordNextSignInWithMfa\":true,\"password\":\"${password}\"},\"jobTitle\":\"${user.title}\",\"employeeid\":\"${user.username}\",\"givenname\":\"${user.firstname}\",\"surname\":\"${user.lastname}\",\"officelocation\":\"${user.location}\"}","httpHeaders":{"Authorization":"${access_token}"},"httpContentType":"application/json","successResponses":{"statusCode":[200,201,204,205]}},{
"name": "call2",
"connection": "AzureADProvisioning",
"url": "https://graph.microsoft.com/v1.0/users/${response.call1.message.id}/manager/\\$ref",
"httpMethod": "PUT",
"httpContentType": "application/json",
"httpParams": "{\"@odata.id\":\"https://graph.microsoft.com/v1.0/users/${managerAccount.accountID}\"}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"successResponses": {
"statusCode": [
204
]
},
"unsuccessResponses": {
"odata~dot#error.code": "Request_BadRequest,Authentication_MissingOrMalformed,Request_ResourceNotFound,Authorization_RequestDenied,Authentication_Unauthoriz"
}
}]}

 

what is wrong with my second call

3 REPLIES 3

rushikeshvartak
All-Star
All-Star

Service account does not have manager rather it have owner so use serviceAccountOwnerMap

https://docs.saviyntcloud.com/bundle/REST-v24x/page/Content/Configuring-the-Integration-for-Provisio...

https://forums.saviynt.com/t5/identity-governance/remove-brackets-from-service-account-owner-attribu...


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

got error while using service account owner map.  I looked at the account table and could see that the accountid has a value. Have not used serviceaccountmapping. dont know what custom attributes to use

 

${if((ServiceAccountOwnerMap.get('USEROWNERS').get('1').collect{it.custompropertyXX.toString()}[0])!=null && (ServiceAccountOwnerMap.get('USEROWNERS').get('1').collect{it.accountid.toString()}[0])!=''){ServiceAccountOwnerMap.get('USEROWNERS').get('1').collect{it.accountid.toString()}[0]}}

 

below is the error.

 

"call1":{"headers":"0lptl07yOsMpgyhpxVzELNzDugbSVFVr06RmDCpfNRshYXP07+nFKdNsFwbi5mlWtxoIoz0oI63xT9oKHcDA5ITL+L0o0JAuBawfm2b4xdxSLm2ojQVa1O4QJqH4ZkqapfxWdKjA5D1BgbNVLVXJCd1Z5QBMpoznKeN1mZgElEg10XlpUgAt3Ayml/vBB4jQ0oy6sue+A/MViCNbMZsjBxHK1UGNPoX0gg3is16xlWLGPBeecpezdCq9MNA4QPqf4KXotNNapfGKshy6/xLrt/1n8Nlzv49Nqg2Cu4ADj2nK4Ue/6RiTZkDLo8trqenm52tqrA+bOJnjRodQBeDlcvgjqFcT8EiDJGOim/i1PtuEF6L4dU7F0JI3XLx9u8tVjiMQyZmtLJJWyLPJMyhnn53HP+nvQTH8p092KlzvPn5Ke5kJfpCcbsuqqjo1upZrtIY5lSrQ/6TLstGci+Cnu248NaJ9yIGnWm6xKREHYaDWbLccOBSbKFTCt04FQ7LUszMZ+DlSnXrU/4V+yNqjDTTB+4bkuPcAEdx1+BQzrvEKG9tjwDKikpF7fmUP+w1RMz1cuyelZmyvKTH9nl4XFWgysYBLrzZUjAomOyv1wpcxpjp51mLQmZWAdvTtyMvpTsQ8mayOws7+fUNdwUMV06QsQHu4noBfTdx+jIUATCqFm8OFh8igu5Gr1kqIB6WZCZBiUXd8DD9S2km6mKwI2e4OA8HgQRFMxB54enxTkFo+9s7xqToIMiQ8RqHLBz1Lz4tj9fC/lyYKGqbtBi+wA6cpvvSUjz2ZvvqurX4km3+OBoQSm9Xi2D6hp0p9b/Xa3MHQv+ZA8LJnuiGk5Z5SvEGoAP7+e+gYW+EnTnxcW0RZrIn3e6mPyYx8whUZIHjUAl8fElbv4GXMOu9YfJYJiz/ua4Y4q7jQvTctHsBrTwur1RyCI8DxCvwUBrrUzBTiLdX28sxBs/29jxoZPp83IoxsRPhzbYGurpTeGTe6EsLPEoyLzcF1u5W975Ie1jAD0z2Vfn+R3s1Hf+dk6RJtxA==","message":{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users/$entity","id":"c9da10e3-0e88-470e-a57f-773917a4df5d","businessPhones":[],"displayName":"Mario,Esquivel","givenName":"Mario","jobTitle":"Senior Hiring Specialist","mail":null,"mobilePhone":null,"officeLocation":"TX Dallas (Office)","preferredLanguage":null,"surname":"Esquivel","userPrincipalName":"U75UHVCS@ppgeico.com"},"statusCode":201,"description":null,"status":"Success"},"call2":{"message":"Unexpected end-of-input: was expecting closing quote for a string value\n at [Source: {\"@odata.id\":\"https://graph.microsoft.com/v1.0/users/${if((ServiceAccountOwnerMap.get('USEROWNERS').get('1').colle... && (ServiceAccountOwnerMap.get('USEROWNERS').get('1').collect{it.accountid.toString()}[0])!=''){ServiceAccountOwnerMap.get('USEROWNERS').get('1').collect{it.accountid.toString()}[0]}}; line: 1, column: 685]","status":"Failed"}}

you have syntax error in json


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