05/23/2023 10:11 AM
Hello Team,
We are trying to create Entitlement based role request. Below is the request JSON. We are getting "
05/24/2023 08:10 AM
As per the API documentation , Role type= Application is not specified.
https://documenter.getpostman.com/view/1797923/SzzgAepY#e20ba529-ab2b-4ae3-89f9-959ac1ccb6ff
Can you please paste the API reference link?
Thanks
05/25/2023
06:26 AM
- last edited on
05/25/2023
03:32 PM
by
Dave
Hi,
Thank you for the response. We are sending the roletype as Application in json body. Please refer to the screenshot in this forum.
JSON body for your reference:
The API reference link:
https://company.saviyntcloud.com/ECM/api/createrequest
[This post has been edited by a Moderator to remove sensitive information.]
05/25/2023 01:23 PM - edited 05/25/2023 01:24 PM
It seems you are using the wrong API. Please use below one
{{url}}/ECM/{{path}}/createEnterpriseRoleRequest
Document:
https://documenter.getpostman.com/view/1797923/2s83mbojGM#fc85097b-188a-4b75-9ea7-d109e4b681e6
06/02/2023 08:17 AM
We are looking to create Application role with Entitlement, will this API support Application role creation as well?
As per the documentation and our testing it was not working.
06/02/2023 08:59 AM
Yes, Application Role can be created via API. Can you please try with below body?
{
"roletype":"Application",
"role_name":"testRole4",
"requestor":"admin",
"owner":"gbana5",
"endpointname":"amigopod"
}
06/02/2023 09:00 AM
Below API
https://documenter.getpostman.com/view/1797923/SzKN22aV#fa34935d-3eef-40f1-9b8e-6a2a49e15ef2
05/25/2023 03:32 PM
Its not supported for Application Role Type
06/07/2023 10:05 AM
Hi Devang,
This does not work for APPLICATION role type.
06/07/2023 10:32 AM
What is the error and body that you passed?
06/07/2023 10:51 AM
Hi Devang,
Thank you for your quick response. I was able to add entitlements to the role by first creating role (/createEnterpriseRoleRequest) and then updating role (/updateEnterpriseRoleRequest). During the update operation, I added entitlement details in JSON request.
I will now check if API to create entitlement based role request works (/createrequest). This way my use case can be done with 1 API call instead of 2 that I mentioned above.
Thanks,
Priya
06/07/2023 11:04 AM
Thanks, that means you are able to create Application role via API which was your original ask.
06/07/2023 11:08 AM
MY original ask to this thread was Unable to create Entitlement based role request. I went via the route to first create app role and then update it because the direct API posted on Saviynt API documentation was not working (/createrequest).
https://documenter.getpostman.com/view/1797923/2s83mbojGM#568384cd-9d5a-4570-bc38-5c93a9c62543