and more in a single search tool across platforms. Read the announcement here. |
11/02/2023 03:00 AM - last edited on 11/02/2023 03:22 AM by Sunil
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]
11/02/2023 04:33 AM
Can you check the URL? $ was missing.
https://domain/scim2/scim2/Groups/${entitlementValue.entitlementID}
-Siva
11/02/2023 05:03 AM
{
"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)
11/02/2023 06:51 AM - last edited on 11/06/2023 12:03 AM by Sunil
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]
11/05/2023 06:24 PM - last edited on 11/06/2023 12:05 AM by Sunil
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
]
}
}
]
}
11/02/2023 07:19 PM
I mean to say Account Name is not resolving.
11/05/2023 06:31 PM
Does account name is resolving in url ?
11/05/2023 06:35 PM - last edited on 11/06/2023 12:05 AM by Sunil
Hi Rushi,
This is not resolving.
[{\"display\":\"${account.name}\",\"$ref\":\"https://removed/scim2/Users/${account.accountID}\ "}]}}]}",
Regards,
Ravi.
11/05/2023 06:36 PM - last edited on 11/06/2023 12:06 AM by Sunil
[{\"display\":\"${account.name}\",\"$ref\":\"https://removed/scim2/Users/${account.accountID}\ "}]}}]}",
account.name and account.accountID
11/05/2023 06:36 PM
${accountName}
This json is called in which block ?
11/05/2023 06:41 PM - last edited on 11/06/2023 12:07 AM by Sunil
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.
11/05/2023 06:44 PM
try below
${accountName}
${task?.accountName}
11/05/2023 07:42 PM
Rushi - I tried the below options as you mentioned above
${accountName}
${task?.accountName}
Regards,
Ravi.
11/05/2023 08:21 PM - last edited on 11/06/2023 12:08 AM by Sunil
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