How to get all groups managed by PIM using either rest API or any SDK API?

Eyal Kaufman 0 Reputation points
2023-03-21T08:49:33.1766667+00:00

Is it possible to retrieve all groups managed by PIM?

for example, the groups shown here:

User's image

In addition, I want to get a list of all these groups and get the "Eligible assignments" of each group, but I didn't find any API that can do this.

I have tried to use this documentation but I didn't find what I was looking for:

https://learn.microsoft.com/en-us/graph/api/resources/privilegedidentitymanagementv3-overview?view=graph-rest-1.0

Any suggestions?

Any help is appreciated!

Microsoft Security | Microsoft Graph
Microsoft Security | Microsoft Entra | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andy David - MVP 157.8K Reputation points MVP Volunteer Moderator
    2023-03-21T12:09:15.6466667+00:00

    Maybe grab all the group IDs then see which are role-assignable?

    https://learn.microsoft.com/en-us/azure/active-directory/roles/groups-view-assignments

    User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.