Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/23/2024 02:15 AM
I fails 'Request to Add Entitlement' with error '
Solved! Go to Solution.
08/23/2024 05:38 AM
Use latest API package https://documenter.getpostman.com/view/36611902/2sA3s6DpEt
Refer Saviynt API Documentation
https://docs.saviyntcloud.com/bundle/API-Reference-Guide/page/Content/API-References.htm
08/26/2024 05:37 PM
Same Error
08/26/2024 05:53 PM
Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]
⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️
08/26/2024 11:48 PM
I resolved it.
As you advice, I installed latest version of API collection.
I changed path 'api' -> 'api/v5', not 'api/4'. 'api/4' is not worked.
And I changed Auth Type of API Collection 'Bearer Token' -> 'Inherit auth from parent'
Thank you.
08/27/2024 12:37 AM
Please share curl command
08/27/2024 12:46 AM - edited 08/27/2024 12:47 AM
I said this is resolved now.
i've attached it for your reference. Maybe I think two case is same cURL.
This is success case.
curl --location 'https://XXXXXXX.saviyntcloud.com/ECM/api/v5/createrequest' \
--header 'Authorization: Bearer eyJXXXXXXXXXXXXXXXXXXXE' \
--header 'Content-Type: application/json' \
--header 'Cookie: JSESSIONID=D583XXXXXXXXXX59; CCSRF-TOKEN=d9xxxxxxxxxxxc38; INGRESSCOOKIE=1724716878.212.54.959125|0f4091fceac04271d9e9e5a60a3d3e8f; access_token=eyJXXXXXXXXXXXXXXXX38wE; token_type=Bearer; user_name=XXXXXXXX' \
--data '{
"requesttype":"ADD",
"username":"XXXXXXXXX",
"endpoint":"Saviynt4Saviynt",
"securitysystem":"Saviynt4Saviynt",
"accountname":"XXXXXXXXX",
"comments":"Please approve for Operation job of Saviynt",
"requestor":"XXXXXXXXX",
"createaccountifnotexists":"true",
"entitlement":[
{"entitlementtype":"SAVRole","entitlementvalue":"ROLE_ADMIN"}
],
"checksod":"true"
}'
This is failure case.
curl --location 'https://XXXXXXX.saviyntcloud.com/ECM/api/createrequest' \
--header 'Authorization: Bearer eyJhbGcXXXXXXXXXX9t958P8' \
--header 'Content-Type: application/json' \
--header 'Cookie: JSESSIONID=56C29XXXXXXXXXXB7AC; CCSRF-TOKEN=4d78XXXXXXXXXX8c; INGRESSCOOKIE=1724716878.212.54.959125|0f4091fceac04271d9e9e5a60a3d3e8f; access_token=eyJhbXXXXXXXXXXKG38wE; token_type=Bearer; user_name=XXXXXXXXXX' \
--data '{
"requesttype":"ADD",
"username":"XXXXXXXXXX",
"endpoint":"Saviynt4Saviynt",
"securitysystem":"Saviynt4Saviynt",
"accountname":"XXXXXXXXXX",
"comments":"Please approve for Operation job of Saviynt",
"requestor":"XXXXXXXXXX",
"createaccountifnotexists":"true",
"entitlement":[
{"entitlementtype":"SAVRole","entitlementvalue":"ROLE_ADMIN"}
],
"checksod":"true"
}'
failure case response
<error>Invalid Request TypeNo signature of method: org.codehaus.groovy.grails.web.json.JSONArray.split() is applicable
for argument types: (java.lang.String) values: [=]
Possible solutions: split(groovy.lang.Closure), split(groovy.lang.Closure), wait(), sort(), tail(), toList()</error>
08/27/2024 12:55 AM
Path variable was wrong in this case
refer below post to setup environment instead of setting url individually
https://forums.saviynt.com/t5/identity-governance/postman-saviynt-rest-api/m-p/113174