Skip to main content
GET
https://{tenantDomain}/api/v2
/
users
/
{id}
/
enrollments
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;

public partial class Examples
{
    public async Task Example() {
        var client = new ManagementClient(
            token: "<token>"
        );

        await client.Users.Enrollments.GetAsync(
            "id"
        );
    }

}
package example

import (
context "context"

client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)

func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
client.Users.Enrollments.Get(
context.TODO(),
"id",
)
}
package com.example.usage;

import com.auth0.client.mgmt.ManagementApi;

public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.token("<token>")
.build();

client.users().enrollments().get("id");
}
}
<?php

namespace Example;

use Auth0\SDK\API\Management\Management;

$client = new Management(
token: '<token>',
);
$client->users->enrollments->get(
'id',
);
from auth0.management import ManagementClient

client = ManagementClient(
token="<token>",
)

client.users.enrollments.get(
id="id",
)
require "auth0"

client = Auth0::Management.new(token: "<token>")

client.users.enrollments.get(id: "id")
import { ManagementClient } from "auth0";

async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.users.enrollments.get("id");
}
main();
import { ManagementClient } from "auth0";

async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.users.enrollments.get("id");
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/users/{id}/enrollments \
--header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "type": "<string>",
    "name": "<string>",
    "identifier": "<string>",
    "phone_number": "<string>",
    "enrolled_at": "2023-11-07T05:31:56Z",
    "last_auth": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

ID of the user to list enrollments for.

Response

Enrollments successfully retrieved.

id
string

ID of this enrollment.

status
enum<string>

Status of this enrollment. Can be pending or confirmed.

Available options:
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.

Available options:
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.