Skip to main content
Solved

API Query for Permission Sets Granted to Users (All)

  • Aug 15, 2024 6:38 AM UTC
  • 2 replies
  • 247 views

Forum|alt.badge.img+7

Hi everyone, is there any way to get this kind of mapping (user to permission set) from aurena projection API?

 

If yes, may I know what is the API to be used?

 

Please advise

Best answer by hamiasmai

Self Answer: 

Its on Reference_UserGrants

 

View original

2 replies

Forum|alt.badge.img+7
  • Author
  • Sidekick (Customer)
  • Answer
  • Aug 15, 2024 7:03 AM UTC

Self Answer: 

Its on Reference_UserGrants

 


dsj
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • Aug 15, 2024 7:14 AM UTC

Hi @hamiasmai 

 

I think you can do this with two API calls.

  1. Fetch the permission sets: <ifs_cloud_url>/main/ifsapplications/projection/v1/PermissionSetHandling.svc/PermissionSets?$select=Role
  2. Loop through the results and fetch users granted for each permission set: <ifs_cloud_url>/main/ifsapplications/projection/v1/PermissionSetHandling.svc/PermissionSets(Role='{Role}')/AllGrantedUsers?$expand=UserRef($select=Description,Active)

Hope it helps!

Damith