appConsentRequest 资源类型

命名空间:microsoft.graph

重要

Microsoft Graph /beta 版本下的 API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。

表示用户在请求租户管理员同意访问应用或向应用授予权限时创建的请求。 详细信息包括用户希望代表自己授予访问权限的应用以及用户请求的权限。

当应用程序或权限需要管理员授权时,并且仅当 启用管理员同意工作流 时,用户才能创建同意请求。

方法

方法 返回类型 Description
List appConsentRequest 集合 检索 appConsentRequest 对象及其属性的集合。
Get appConsentRequest 读取 appConsentRequest 对象的属性和关系。
按当前用户筛选 appConsentRequest 读取当前用户为其审阅者的 appConsentRequest 对象的属性,用户同意请求的状态为 InProgress。

属性

属性 类型 说明
appDisplayName String 请求同意的应用的显示名称。 必填。 仅支持 $filter (eq) 和 $orderby.
appId String 应用程序的标识符。 必填。 仅支持 $filter (eq) 和 $orderby.
consentType String 请求的同意类型。 可能的值为: Static 和 Dynamic。 这些分别代表同意工作流中请求的静态和动态权限。 仅支持 $filter (eq) 和 $orderby. 必需。
id String 应用同意请求的标识符。 必填。
pendingScopes appConsentRequestScope 集合 等待批准的待处理范围列表。 如果 consentType 为 Static空,则此值为空。 必填。

关系

关系 类型 说明
userConsentRequests userConsentRequest 集合 待处理用户同意请求的列表。 支持 $filter(eq)。

JSON 表示形式

以下 JSON 表示形式显示资源类型。

{
  "@odata.type": "#microsoft.graph.appConsentRequest",
  "id": "String (identifier)",
  "appId": "String",
  "appDisplayName": "String",
  "consentType": "String",
  "pendingScopes": [
    {
      "@odata.type": "microsoft.graph.appConsentRequestScope"
    }
  ]
}