passwordCredentialConfiguration 资源类型

命名空间:microsoft.graph

重要

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

密码凭据配置对象,该对象包含用于配置限制(例如阻止或限制密码机密生存期)的属性。

属性

属性 类型 说明
maxLifetime 持续时间 指示密码过期的最大生存期(定义为 ISO 8601 持续时间)的字符串值。 例如, P4DT12H30M5S 表示 4 天、12 小时、30 分钟和 5 秒。 当 restrictionType 设置为 passwordLifetime时,此属性是必需的。
restrictForAppsCreatedAfterDateTime DateTimeOffset 指定策略限制应用于新创建的应用程序的日期。 对于现有应用程序,可以追溯应用强制实施日期。
restrictionType appCredentialRestrictionType 要应用的限制类型。 可能的值为:passwordAddition、、passwordLifetimesymmetricKeyAdditionsymmetricKeyLifetimecustomPasswordAdditionunknownFutureValue。 restrictionType 的每个值每个策略只能使用一次。
state appManagementRestrictionState 指示是否计算限制的字符串值。 可能的值为: enableddisabledunknownFutureValue。 如果 enabled为 ,则计算限制。 如果 disabled为 ,则不会评估或强制实施限制。

关系

无。

JSON 表示形式

以下 JSON 表示形式显示了资源。

{
  "@odata.type": "#microsoft.graph.passwordCredentialConfiguration",
  "restrictionType": {
    "@odata.type": "microsoft.graph.appCredentialRestrictionType"
  },
  "state": {
    "@odata.type": "microsoft.graph.appManagementRestrictionState"
  },
  "restrictForAppsCreatedAfterDateTime": "String (DateTime)",
  "maxLifetime": "String (ISO 8601 duration)"
}