Skip to content

Enroll the authenticated user

POST
/api/v1/users/me
curl --request POST \
--url https://example.com/api/v1/users/me \
--header 'Authorization: Bearer <token>'

JIT-enroll the authenticated user, refresh their profile and lastLoginAt, apply bootstrap-admin rules, and warm the access cache. Use this only after an explicit IdP login; do not prefetch, poll, or automatically retry transient failures.

Success

Media type application/json
object
id
required
string
role
string
email
string
displayName
string
idp
string
idpTenant
string
Example generated
{
"id": "example",
"role": "example",
"email": "example",
"displayName": "example",
"idp": "example",
"idpTenant": "example"
}

Not authenticated

User is disabled

Authentication service unavailable