メインコンテンツへスキップ
GET
/
users
/
{id}
/
enrollments
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.users.enrollments.get("id");
}
main();
[
  {
    "id": "<string>",
    "status": "pending",
    "type": "<string>",
    "name": "<string>",
    "identifier": "<string>",
    "phone_number": "<string>",
    "auth_method": "authenticator",
    "enrolled_at": "2023-11-07T05:31:56Z",
    "last_auth": "2023-11-07T05:31:56Z"
  }
]

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

パスパラメータ

id
string
必須

ID of the user to list enrollments for.

レスポンス

Enrollments successfully retrieved.

id
string

ID of this enrollment.

status
enum<string>

Status of this enrollment. Can be pending or confirmed.

利用可能なオプション:
pending,
confirmed
type
string

Type of enrollment.

name
string

Name of enrollment (usually phone number).

Maximum string length: 20
identifier
string

Device identifier (usually phone identifier) of this enrollment.

phone_number
string

Phone number for this enrollment.

auth_method
enum<string>

Authentication method for this enrollment. Can be authenticator, guardian, sms, webauthn-roaming, or webauthn-platform.

利用可能なオプション:
authenticator,
guardian,
sms,
webauthn-platform,
webauthn-roaming
enrolled_at
string<date-time>

Start date and time of this enrollment.

last_auth
string<date-time>

Last authentication date and time of this enrollment.