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 - Remove Access/ent - GroovyCastException: Cannot cast object 'name=Roles1' with class 'java.ut

IAM_99
Regular Contributor II
Regular Contributor II

Hi Team,

We are calling Remove Access  for a REST point its throwing below error in the logs there is not provisioning comments.

org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'name=Roles1' with class 'java.util.LinkedHashMap$Entry' to class 'java.util.Map'

{
"call": {
"name": "Roles1",
"connection": "userAuth",
"url": "https://xxxxxxxxxxxxxx/${account.name}",
"httpMethod": "DELETE",
"httpParams": "{\"roleId\": \"${entitlementValue.customproperty1}\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"Content-Type": "application/json"
},
"successResponses": {
"statusCode": [204, 200, 201]
}
}
}

 


I have tried with "DELETEWITHBODY" as well, but no luck, same works in POSTMAN, please find below

IAM_99_0-1681514861807.png

 

 

any inputs on this ?

1 REPLY 1

RakeshMG
Saviynt Employee
Saviynt Employee

Please use :

"name": "Role"


in place of

"name": "Roles1"


​Regards

Rakesh M Goudar