accessPackage 资源类型accessPackage resource type

命名空间:microsoft.graphNamespace: microsoft.graph

AZURE AD 权限管理中,访问包定义了资源角色的集合,以及一个或多个用户如何获取对这些资源的访问权限的策略。In Azure AD entitlement management, an access package defines the collections of resource roles and the policies for how one or more users can get access to those resources.
每个访问包都由一个访问包目录引用,并从该目录中的资源链接到来自定义该程序包提供的访问权限的特定于资源的角色作用域。Each access package is referenced by a single access package catalog, and has links to the resources from that catalog via the resource-specific role scopes that define the access the package provides. 访问包还链接到访问包分配策略,每个分配策略都定义了可以请求或分配访问包分配的成员。An access package also links to the access package assignment policies, each of which define who can request or be assigned an access package assignment.

若要将用户分配到访问包,请 创建一个 引用访问包和访问包分配策略的 accessPackageAssignmentRequest。To assign a user to an access package, create an accessPackageAssignmentRequest that references the access package and access package assignment policy.

方法Methods

方法Method 返回类型Return Type 说明Description
列出 accessPackagesList accessPackages accessPackage 集合accessPackage collection 检索 accesspackage 对象的列表。Retrieve a list of accesspackage objects.
创建 accessPackageCreate accessPackage accessPackageaccessPackage 创建新的 accesspackage 对象。Create a new accesspackage object.
获取 accessPackageGet accessPackage accessPackageaccessPackage 读取 accesspackage 对象的属性和关系。Read properties and relationships of an accesspackage object.
更新 accessPackageUpdate accessPackage None 更新 accesspackage 对象的属性。Update the properties of an accesspackage object.
删除 accessPackageDelete accessPackage None 删除 accesspackageDelete an accesspackage.
列出 accessPackageResourceRoleScopesList accessPackageResourceRoleScopes accessPackageResourceRoleScope 集合accessPackageResourceRoleScope collection 检索此访问包的 accessPackageResourceRoleScope 对象的列表。Retrieve a list of accessPackageResourceRoleScope objects for this access package.
创建 accessPackageResourceRoleScopeCreate accessPackageResourceRoleScope None 为此访问包创建一个新的 accessPackageResourceRoleScope 对象。Create a new accessPackageResourceRoleScope object for this access package.

属性Properties

属性Property 类型Type 说明Description
catalogIdcatalogId StringString 引用此访问包的访问包目录的 ID。ID of the access package catalog referencing this access package. 只读。Read-only.
createdBycreatedBy StringString 创建此资源的主题的用户或标识的 UPN。UPN of the user or identity of the subject who created this resource. 只读。Read-only.
createdDateTimecreatedDateTime DateTimeOffsetDateTimeOffset 时间戳类型表示采用 ISO 8601 格式的日期和时间信息,始终采用 UTC 时间。The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. 例如,2014 年 1 月 1 日午夜 UTC 如下所示:'2014-01-01T00:00:00Z'For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. 只读。Read-only.
说明description StringString 访问包的说明。The description of the access package.
displayNamedisplayName StringString 访问包的显示名称。The display name of the access package.
idid StringString 只读。Read-only.
isHiddenisHidden BooleanBoolean 访问包是否在请求程序中是隐藏的。Whether the access package is hidden from the requestor.
isRoleScopesVisibleisRoleScopesVisible BooleanBoolean 指示角色范围是否可见。Indicates whether role scopes are visible.
modifiedBymodifiedBy StringString 上次修改此资源的用户的 UPN。The UPN of the user who last modified this resource. 只读。Read-only.
modifiedDateTimemodifiedDateTime DateTimeOffsetDateTimeOffset 时间戳类型表示采用 ISO 8601 格式的日期和时间信息,始终采用 UTC 时间。The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. 例如,2014 年 1 月 1 日午夜 UTC 如下所示:'2014-01-01T00:00:00Z'For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. 只读。Read-only.

关系Relationships

关系Relationship 类型Type 说明Description
accessPackageAssignmentPoliciesaccessPackageAssignmentPolicies accessPackageAssignmentPolicy 集合accessPackageAssignmentPolicy collection 只读。Read-only. 可为空。Nullable.
accessPackageCatalogaccessPackageCatalog accessPackageCatalogaccessPackageCatalog 只读。Read-only. 可为空。Nullable.
accessPackageResourceRoleScopesaccessPackageResourceRoleScopes accessPackageResourceRoleScope 集合accessPackageResourceRoleScope collection 可为 Null。Nullable.

JSON 表示形式JSON representation

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

{
    "id":"360fa7de-90be-48dc-a2ce-fc40094a93dd",
    "description":"Sample access package",
    "displayName":"Access package for testing",
    "isHidden":false,
    "catalogId":"662d99e7-6ceb-4c21-9cb4-9b0bbfdefccc",
    "isRoleScopesVisible":false,
    "createdDateTime":"2019-01-27T18:19:50.74Z",
    "modifiedDateTime":"2019-01-27T18:19:50.74Z",
    "createdBy":"TestGA@example.com",
    "modifiedBy":"TestGA@example.com"
}