Getting error while addAccessJSON - REST API

kolipakularavi
New Contributor
New Contributor

Hi Team,

While Adding the Add entitlements getting the below error in httpParams:

 

{"Role":{"message":"Unexpected character
('o' (code 111)): was expecting comma to separate Object entries\n at [Source:
{\"schemas\":\"\",
\"Operations\":\"[{\"op\":\"add\",
\"value\":
\"{\"members\":\"[{\"display\":\"user.name\",\"$ref\":\"https://domain/scim2/Users/${account.accountID}\"}]\"}}]\"};
line: 1, column: 33]","status":"Failed"}}

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

Please help

[This message has been edited by moderator to remove URL's]

 

1 REPLY 1

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @kolipakularavi,

The json body is not in valid format, 

{"schemas":"","Operations":"[{"op":"add","value":"{"members":"[{"display":"user.name","$ref":"https:xxxxxxx/scim2/Users/${account.accountID}"}]"}}]"}

Please fix this.

Thanks.