privilegedRole 资源类型privilegedRole resource type

重要说明: Microsoft Graph 中 /beta 版本下的 API 是预览版,可能会发生变化。Important: APIs under the /beta version in Microsoft Graph are in preview and are subject to change. 不支持在生产应用程序中使用这些 API。Use of these APIs in production applications is not supported.

表示 Azure AD 管理员角色,如:全局管理员、 帐单管理员、 服务管理员、 用户管理员、 密码管理员等。Represents an Azure AD administrator role, such as: Global Administrator, Billing Administrator, Service Administrator, User Administrator, Password Administrator, etc.

方法Methods

方法Method 返回类型Return Type 说明Description
列表 privilegedRole 对象List privilegedRole objects privilegedRole集合privilegedRole collection 获取 privilegedRole 的集合。Get the collection of privilegedRole.
获取 privilegedRoleGet privilegedRole privilegedRoleprivilegedRole 读取属性和 privilegedRole 对象的关系。Read properties and relationships of privilegedRole object.
列表分配List assignments privilegedRoleAssignment集合privilegedRoleAssignment collection 获取此角色分配对象集合。Get a assignment object collection for this role.
selfActivateselfActivate privilegedRoleAssignmentprivilegedRoleAssignment 激活分配的角色。Activate the assigned role.
selfDeactivateselfDeactivate privilegedRoleAssignmentprivilegedRoleAssignment 停用分配的角色。Deactivate the assigned role.

属性Properties

属性Property 类型Type 说明Description
IDid stringstring 管理员角色的唯一标识符。The unique identifier for administrator role. 它是一个 GUID 的字符串,并且具有相同的值从给定角色的 Azure AD 的角色模板 id。It is a GUID string and has the same value as the role template id from Azure AD for the given role. 只读。Read-only.
namename stringstring 角色名称。Role name.

RelationshipsRelationships

关系Relationship 类型Type 说明Description
assignmentsassignments privilegedRoleAssignment集合privilegedRoleAssignment collection 此角色分配。The assignments for this role. 只读。Read-only. 可为 Null。Nullable.
settingssettings privilegedRoleSettingsprivilegedRoleSettings 此角色的设置。The settings for this role. 只读。Read-only. 可为 Null。Nullable.
摘要summary privilegedRoleSummaryprivilegedRoleSummary 此角色的摘要信息。The summary information for this role. 只读。Read-only. 可为 Null。Nullable.

JSON 表示形式JSON representation

下面是资源的 JSON 表示形式。Here is a JSON representation of the resource.

{
  "id": "string (identifier)",
  "name": "string"
}