azure Powershell Microsoft API获取合格角色的成员

w80xi6nr  于 2022-12-14  发布在  Shell
关注(0)|答案(2)|浏览(177)

我尝试获取角色的所有成员(包括有效分配和合格分配),但始终只收到有效分配。
我使用的URI是:https://graph.microsoft.com/v1.0/directoryRoles/{RoleID}/members
我拥有的API权限包括:

AdministrativeUnit.ReadWrite.All
Application.ReadWrite.OwnedBy
Directory.AccessAsUser.All
Directory.Read.All
Directory.ReadWrite.All
Group.ReadWrite.All
GroupMember.ReadWrite.All
RoleManagement.ReadWrite.Directory
User.ReadWrite.All
User.Read
UserAuthenticationMethod.ReadWrite.All
Application.ReadWrite.All```
shyt4zoc

shyt4zoc1#

如果要获取目录提供方的角色分配成员(活动和合格),可以使用下面的图形API调用:

GET https://graph.microsoft.com/beta//roleManagement/directory/roleAssignments/{id}

如果要获取授权管理提供程序的角色分配(活动和合格)的成员,可以使用以下图形API调用:

GET https://graph.microsoft.com/beta//roleManagement/entitlementManagement/roleAssignments/{id}
myzjeezk

myzjeezk2#

您可以使用此请求:
GET /roleManagement/directory/roleEligibilityScheduleRequests/{unifiedRoleEligibilityScheduleRequestId}
MS文档:https://learn.microsoft.com/en-us/graph/api/unifiedroleeligibilityschedulerequest-get?view=graph-rest-1.0&tabs=http

相关问题