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

{"Role":{"headers":null,"message":"","statusCode":null,"description":null,"status":"Failed"}}

kolipakularavi
New Contributor
New Contributor

Hi All,

Getting the below error message 

 

{
"call": [
{
"name": "Role",
"connection": "userAuth",
"url": "https://domain/scim2/scim2/Groups/{entitlementValue.entitlementID}",
"httpMethod": "PATCH",
"httpParams": "{\"schemas\":\"\",\"Operations\":[{\"op\":\"add\",\"value\":{\"members\":[{\"display\":\"XLDOMAIN/${user.username}\",\"$ref\":\"https://domain/scim2/Users/${account.accountID}\"}]}}]}",
"httpHeaders": {
"Authorization": "Basic ****",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201,
200,
204
]
},
"unsuccessResponses": {
"statusCode": [
401,
400,
500
]
}
}
]
}

[This message has been edited to remove url]

13 REPLIES 13

Sivagami
Valued Contributor
Valued Contributor

Can you check the URL? $ was missing.

https://domain/scim2/scim2/Groups/${entitlementValue.entitlementID}

-Siva

SumathiSomala
All-Star
All-Star

@kolipakularavi 

{
"call": [
{
"name": "Role",
"connection": "userAuth",
"url": "https://domain/scim2/scim2/Groups/{entitlementValue.entitlementID}",
"httpMethod": "PATCH",
"httpParams": "{\"schemas\":\"\",\"Operations\":[{\"op\":\"add\",\"value\":{\"members\":[{\"display\":\"XLDOMAIN/${user.username}\",\"$ref\":\"https://domain/scim2/Users/${account.accountID}\"}]}}]}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201,
200,
204
]
},
"unsuccessResponses": {
"statusCode": [
401,
400,
500
]
}
}
]
}

 

 

please check url and httpParams in your JSON
Refer AddAccessJSON section in below doc for examples.

Developers Handbook (saviyntcloud.com)

Regards,
Sumathi Somala
If this reply answered your question, please Accept As Solution and give Kudos.

Hi Sumathi,

Thanks for you Identifying the issues.  after modifying as per your suggestions I am still getting this error

{"Role":{"headers":{"Server":"cloudflare","CF-RAY":"81fcd59c3cec3562-CGK","X-Content-Type-Options":"nosniff","Connection":"keep-alive","Date":"Thu, 02 Nov 2023 13:48:19 GMT","X-Frame-Options":"DENY","Strict-Transport-Security":"max-age=31536000","CF-Cache-Status":"DYNAMIC","Cache-Control":"private","Expires":"Thu, 01 Jan 1970 00:00:00 GMT","Content-Length":"150","X-XSS-Protection":"1; mode=block","Content-Type":"application/scim+json"},"message":{"schemas":"urn:ietf:params:scim:api:messages:2.0:Error","detail":"30007 - UserNotFound: User account.name does not exist in: PRIMARY","status":"500"},"statusCode":500,"description":null,"status":"Failed"}}

{
"call": [
{
"name": "Role",
"connection": "userAuth",
"url": "https://removed/scim2/Groups/${entitlementValue.entitlementID}",
"httpMethod": "PATCH",
"httpParams": "{\"schemas\":\"\",\"Operations\":[{\"op\":\"add\",\"value\":{\"members\":[{\"display\":\"${account.name}\",\"$ref\":\"https://removed/scim2/Users/${account.accountID}\ "}]}}]}",
"httpHeaders": {
"Authorization": "xxxxxxxx",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201,
200,
204
]
},
"unsuccessResponses": {
"statusCode": [
401,
400,
500
]
}
}
]
}

[This message has been edited to mask sensitive information]

Hi Team,

Its a PRODUCT bug looks like.  Please help if there is any work around.

call inside the square bracket is not resolving variable name to value.  Please help.

[{\"display\":\"${account.name}\",\"$ref\":\"https://removed/scim2/Users/${account.accountID}\ "}]}}]}"

 

{"Role":{"headers":{"Server":"cloudflare","CF-RAY":"81fcd59c3cec3562-CGK","X-Content-Type-Options":"nosniff","Connection":"keep-alive","Date":"Thu, 02 Nov 2023 13:48:19 GMT","X-Frame-Options":"DENY","Strict-Transport-Security":"max-age=31536000","CF-Cache-Status":"DYNAMIC","Cache-Control":"private","Expires":"Thu, 01 Jan 1970 00:00:00 GMT","Content-Length":"150","X-XSS-Protection":"1; mode=block","Content-Type":"application/scim+json"},"message":{"schemas":"urn:ietf:params:scim:api:messages:2.0:Error","detail":"30007 - UserNotFound: User account.name does not exist in: PRIMARY","status":"500"},"statusCode":500,"description":null,"status":"Failed"}}

{
"call": [
{
"name": "Role",
"connection": "userAuth",
"url": "https://removed/scim2/Groups/${entitlementValue.entitlementID }",
"httpMethod": "PATCH",
"httpParams": "{\"schemas\":\"\",\"Operations\":[{\"op\":\"add\",\"value\":{\"members\":[{\"display\":\"${account.name}\",\"$ref\":\"https://removed/scim2/Users/${account.accountID}\ "}]}}]}",
"httpHeaders": {
"Authorization": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201,
200,
204
]
},
"unsuccessResponses": {
"statusCode": [
401,
400,
500
]
}
}
]
}

 

kolipakularavi
New Contributor
New Contributor

I mean to say Account Name is not resolving.

Does account name is resolving in url ?


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

Hi Rushi,

This is not resolving.

[{\"display\":\"${account.name}\",\"$ref\":\"https://removed/scim2/Users/${account.accountID}\ "}]}}]}",

Regards,

Ravi.

 

[{\"display\":\"${account.name}\",\"$ref\":\"https://removed/scim2/Users/${account.accountID}\ "}]}}]}",

account.name and account.accountID

${accountName} 

This json is called in which block ?

 


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

Rushi - It is called as part of the AddAccessJson

I am passing inside the httpParams.  Attached the body content from POST MAN and JSON.

{
"call": [
{
"name": "Role",
"connection": "userAuth",
"url": "https://removed/scim2/Groups/${entitlementValue.entitlementID}",
"httpMethod": "PATCH",
"httpParams": "{\"schemas\":\"\",\"Operations\":[{\"op\":\"add\",\"value\":{\"members\":[{\"display\":\"${account.name}\",\"$ref\":\"https://removed/scim2/Users/${account.accountID}\ "}]}}]}",
"httpHeaders": {
"Authorization": "xxxxxxxxxxxxxxxxxxxxxxx",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201,
200,
204
]
},
"unsuccessResponses": {
"statusCode": [
401,
400,
500
]
}
}
]
}

Regards,

Ravi.

 

{
"schemas": "",
"Operations": [
{
"op": "add",
"value": {
"members": [
{
"display": "XLDOMAIN/IDMTEST52",
"$ref": "https://keym********r.*****/scim2/Users/fbca5377-92ff-47f2-84ec- "
}
]
}
}
]
}

 

Regards,

ravi.

try below 

${accountName}

${task?.accountName}

 


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

Rushi - I tried the below options as you mentioned above

${accountName}

${task?.accountName}

 

Regards,

Ravi.

Hi Rushi,

I tried below as well but same result, but no luck.

{
"call": [
{
"name": "Role",
"connection": "userAuth",
"url": "https://removed/scim2/Groups/${entitlementValue.entitlementID}",
"httpMethod": "PATCH",
"httpParams": "{\"schemas\": \"\",\"Operations\": [{\"op\": \"add\",\"value\": {\"members\": [{\"$ref\":\"${accountName}\",\"display\": \"XLDOMAIN/kaitest4\"}]}}]}",
"httpHeaders": {
"Authorization": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201,
200,
204
]
},
"unsuccessResponses": {
"statusCode": [
401,
400,
500
]
}
}
]
}

${accountName}

${task?.accountName}

Regards,

Ravi