命名空间:microsoft.graph
重要
Microsoft Graph /beta 版本下的 API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。
表示向用户注册的身份验证方法的抽象类型。 身份验证方法是用户用来对系统进行身份验证或以其他方式证明其身份的方法。 一些示例包括密码、可通过短信或语音呼叫) 使用的电话 (、FIDO2 安全密钥等。
继承自 entity。
此资源类型是由以下派生类型继承的抽象类型:
- emailAuthenticationMethod
- externalAuthenticationMethod
- fido2AuthenticationMethod
- hardwareOathAuthenticationMethod
- microsoftAuthenticatorAuthenticationMethod
- passwordlessMicrosoftAuthenticatorAuthenticationMethod (已弃用)
- passwordAuthenticationMethod
- phoneAuthenticationMethod
- platformCredentialAuthenticationMethod
- softwareOathAuthenticationMethod
- temporaryAccessPassAuthenticationMethod
- windowsHelloForBusinessAuthenticationMethod
- platformCredentialAuthenticationMethod
- qrCodePinAuthenticationmethod
- resourceAccountKeyAuthenticationMethod
重要
列出用户的身份验证方法仅返回此 API 版本上支持并注册到用户的方法。 有关当前支持的方法的列表,请参阅 Microsoft Entra 身份验证方法 API 概述。
方法
| 方法 | 返回类型 | Description |
|---|---|---|
| List | authenticationMethod 集合 | 读取用户的所有 authenticationMethod 对象的属性和关系。 |
| authenticationMethod: attestProvenance | credentialProvenance | 将管理证明应用于身份验证方法的凭据来源。 |
属性
| 属性 | 类型 | 说明 |
|---|---|---|
| createdDateTime | DateTimeOffset | 向用户注册身份验证方法的日期和时间。 只读。 可选。 如果身份验证方法未填充此可选值,则表示 null 此可选值。 时间戳类型使用 ISO 8601 格式表示日期和时间信息,并且始终采用 UTC 格式。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z。 |
| id | String | 注册到此用户的身份验证方法的此实例的标识符。 只读。 继承自 entity。 |
| lastUsedDateTime | DateTimeOffset | 用户上次使用身份验证方法的日期和时间。 只读。 可选。 如果身份验证方法未填充此可选值,则表示 null 此可选值。 时间戳类型使用 ISO 8601 格式表示日期和时间信息,并且始终采用 UTC 格式。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z。 |
| 来源 | credentialProvenance | 身份验证方法的来源和信任分类。 支持 管理证明。 为 FIDO2 身份验证方法返回; null 对于不支持来源的方法类型。 |
关系
无。
JSON 表示形式
以下 JSON 表示形式显示资源类型。
{
"@odata.type": "#microsoft.graph.authenticationMethod",
"createdDateTime": "String (timestamp)",
"id": "String (identifier)",
"lastUsedDateTime": "String (timestamp)",
"provenance": {
"@odata.type": "microsoft.graph.credentialProvenance"
}
}