Graph API to query Privilege Identity Management| AzureAD roles for group and Administrative Unit

Alex You 25 Reputation points
2023-08-01T04:52:32.0133333+00:00

I can query from https://graph.microsoft.com/beta/privilegedAccess/aadRoles/resources/{tenantID}/roleAssignments

But these are for Service Principal and Users in Scope of Directory

But there are users and groups show in the Authentication Administrator from Privileged Identity Management

Their Type show as User, but Scope show as Administrative unit, how do I get a list of these?

Microsoft Security | Microsoft Graph
{count} votes

Accepted answer
  1. Vasil Michev 119.6K Reputation points MVP Volunteer Moderator
    2023-08-01T06:59:05.8933333+00:00

    You can use the /roleManagement/directory/roleEligibilityScheduleRequests endpoint (or the corresponding Get-MgRoleManagementDirectoryRoleEligibilitySchedule cmdlet) to list them: https://learn.microsoft.com/en-us/graph/api/rbacapplication-list-roleeligibilityschedulerequests?view=graph-rest-beta&tabs=http

    Scoped assignments will show up with /administrativeUnits/blabla value for the DirectoryScopeId property.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.