Cannot find entitlement ID

I have an entitlement that I need to add to many roles. It exists in the UI and I can manually add it via UI, but when I search for it in Postman I cannot find it. I am running a GET /entitlements to list my entitlements but it appears to not be listing them all. I’m not sure what the default cap on entitlements listed is. This is preventing me from determining the entitlement ID to use when I am adding it to roles via API call.
Am I executing the API call wrong? Is there a search query I can use to see the role ID in the UI? Not sure where to go here.

PS, I attempted to use the AIC to figure out the entitlement ID but had no luck.

update - I was able to find it in AIC, It took some figuring out. I am still curious as to why I cannot find it VIA API in GET /entitlements though.

Hey Jared,

I can’t answer your API issue without seeing the call/response you are getting from Postman, but a quick way to get an entitlement ID through the UI is to look at the URL. Navigate to Access Model → Entitlements, search for your desired entitlement and click on it to bring up the entitlement screen. Look at the URL and you will see something like the below example with the entitlement ID at the end of the URL.

Ex: https://tenant.identitynow.com/ui/a/admin/access/entitlements/landing-page/details/fb2d3a1fae0d4e1bbzcf93f3240430ee

Please let me know if this helps!

  • Zach
2 Likes

Wow that was a major help. I think one of my trainers showed me this like 6 months ago too and I forgot. Thanks a lot for the help.

One other thing is that the APIs have a default page size of 250, so that’s probably why it doesn’t appear if you just do a flat get.

The entitlements API does support filtering, so you could also do a filter in the params as stated here:

Of course, the method described (seeing the ID and then putting that in the URL) also works.

1 Like

Hey Edwin,
Thanks, this is something we touched on in training but I wasn’t sure about it when In was working on it. I’ll go over this documentation and try out using it for further use cases!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.