Skip to main content
Solved

API Query for Permission Sets Granted to Users (All)

  • August 15, 2024
  • 2 replies
  • 144 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

 

2 replies

Forum|alt.badge.img+7
  • Author
  • Sidekick (Customer)
  • 21 replies
  • Answer
  • August 15, 2024

Self Answer: 

Its on Reference_UserGrants

 


dsj
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • 905 replies
  • August 15, 2024

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