命名空间:microsoft.graph
表示向用户注册的身份验证方法的抽象类型。 身份验证方法是用户用来对系统进行身份验证或以其他方式证明其身份的方法。 一些示例包括密码、可通过短信或语音呼叫) 使用的电话 (、FIDO2 安全密钥等。
authenticationMethod 资源类型是以下派生类型继承的抽象类型:
- emailAuthenticationMethod
- externalAuthenticationMethod
- fido2AuthenticationMethod
- microsoftAuthenticatorAuthenticationMethod
- passwordAuthenticationMethod
- phoneAuthenticationMethod
- platformCredentialAuthenticationMethod
- qrCodePinAuthenticationMethod
- resourceAccountKeyAuthenticationMethod
- softwareOathAuthenticationMethod
- temporaryAccessPassAuthenticationMethod
- windowsHelloForBusinessAuthenticationMethod
重要
列出用户的身份验证方法仅返回此 API 版本上支持并注册到用户的方法。 有关当前支持的方法的列表,请参阅 Microsoft Entra 身份验证方法 API 概述。
方法
| 方法 | 返回类型 | Description |
|---|---|---|
| List | authenticationMethod 集合 | 读取用户的所有 authenticationMethod 对象的属性和关系。 |
属性
| 属性 | 类型 | 说明 |
|---|---|---|
| createdDateTime | DateTimeOffset | 表示创建实体的日期和时间。 只读。 |
| id | String | 注册到此用户的身份验证方法的此实例的标识符。 只读。 |
| lastUsedDateTime | DateTimeOffset | 使用情况数据可用时,身份验证方法最近成功使用的日期和时间。 只读。 可为 Null。 时间戳使用 ISO 8601 格式,并且始终采用 UTC 格式。 例如,2026-10-28T15:30:00Z。 |
lastUsedDateTime 值是在尽力而为的基础上填充的,不保证实时反映使用情况。 当使用情况数据不可用或身份验证方法不支持使用情况跟踪时,它可以是 null ,也可以不存在。 A 或 absent null 值并不意味着从未使用过该方法。 检索使用情况数据失败不会导致身份验证方法请求失败。
关系
无。
JSON 表示形式
以下 JSON 表示形式显示资源类型。
{
"@odata.type": "#microsoft.graph.authenticationMethod",
"id": "String (identifier)",
"createdDateTime": "String (timestamp)",
"lastUsedDateTime": "String (timestamp)"
}