Manage Auth0 users and roles via the Management API

domain: auth0.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create a Machine-to-Machine application in your Auth0 tenant and authorize it to call the Management API with the specific scopes needed (e.g., read:users, update:users, read:roles, create:role_members)
  2. Obtain a Management API access token by posting to your tenant's /oauth/token endpoint with grant_type=client_credentials, your app's client_id, client_secret (YOUR_SECRET), and the Management API audience
  3. Search and retrieve users with GET /api/v2/users using the q query parameter (Lucene syntax) or GET /api/v2/users/USER_ID for a specific user; use the fields parameter to limit response size
  4. Create or update roles with POST /api/v2/roles or PATCH /api/v2/roles/ROLE_ID; assign users to a role with POST /api/v2/roles/ROLE_ID/users providing a JSON body with a users array of user IDs
  5. Block a user by patching their profile with blocked: true via PATCH /api/v2/users/USER_ID; delete a user permanently with DELETE /api/v2/users/USER_ID
  6. Paginate list responses using the page and per_page query parameters or the checkpoint pagination parameters (from and take) for large user bases; Management API endpoints are rate-limited per tenant

Known gotchas

Related routes

Enroll a WebAuthn factor and configure Auth0 MFA passkeys via the Auth0 Management API and Actions
auth0.com · 5 steps · unrated
Model B2B multi-tenancy with Auth0 Organizations
auth0.com · 6 steps · unrated
Configure Auth0 Fine-Grained Authorization (FGA) with a Zanzibar-style relationship model for multi-tenant resource access
docs.fga.dev · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans