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

REST Connector - Remove Entitlement is not working in Saviynt but works in POSTMAN

IAM_99
Regular Contributor II
Regular Contributor II

Hi Team,  We have REST application - trying to remove entitlement using below JSON:

{
"accountIdPath": "accountName",
"call": [{
"name": "Entitlements",
"connection": "userAuth",
"httpMethod": "PATCH",
"url": "https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-management/v1/users/entitlements/${entitlementValue.entitle...}",
"httpParams": "{\"username\":\"${account.accountID}\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"Content-Type": "application/json",
"successResponses": {
"statusCode": [
200,
201,
202,
203,
204
]
}

}]
}

 

Gives 200 response and Task is getting Completed. But its not removing from the target.

Same if I try in POSTMAN its removing from target. 

please find POSTMAN screens 

IAM_99_0-1674018705367.png

IAM_99_2-1674018791034.png

 

That means my JSON conversion has an issue ?

 

 

 

 

3 REPLIES 3

rushikeshvartak
All-Star
All-Star

change account.accountID to account.name


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

IAM_99
Regular Contributor II
Regular Contributor II

i have tried changing to name but  its not working, any other inputs 

Does your entitlement type is correct ?

change entitlementid to entitlement_value


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