appConsentRequest 资源类型

命名空间:microsoft.graph

重要

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

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

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

方法

方法 返回类型 说明
列出 appConsentRequests appConsentRequest 集合 检索 appConsentRequest 对象及其属性的集合。
获取 appConsentRequest appConsentRequest 读取 appConsentRequest 对象的属性和关系。
filterByCurrentUser appConsentRequest 读取当前用户为其审阅者且用户同意请求InProgress状态为 的 appConsentRequest 对象的属性。

属性

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

关系

关系 类型 说明
userConsentRequests userConsentRequest 集合 挂起的用户同意请求的列表。 支持 $filtereq)。

JSON 表示形式

下面是资源的 JSON 表示形式。

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