Skip to main content

After this article

You’ll be able to connect Auth0 to Lumos to sync users and roles. This integration is read-only.

Capabilities

Required plan and roles

  • Auth0 application: you need to create a Machine to Machine application in Auth0 and authorize it against the Auth0 Management API.
  • API scopes required to sync users and roles:
    • read:users
    • read:roles
These two scopes also cover tenants with 1000 or more users. You don’t need to grant any extra scope for the bulk user export. Older versions of this article also listed read:current_user and read:user_idp_tokens. The integration doesn’t use them, so you can leave them unselected or remove them from an existing application.

Large tenants

Auth0’s user search returns at most 1000 users. Lumos detects tenants that reach this cap and reads all of their users through Auth0’s bulk user export instead. You don’t need to turn on any setting.
  • An export can take a while on large tenants. Lumos waits up to about four hours for Auth0 to finish it. If the export doesn’t finish in time, that sync fails, and the next sync starts a new export.
  • Bulk user export isn’t available on every Auth0 plan, for example the Free plan. If your plan doesn’t support it and your tenant has 1000 or more users, the sync fails with a connection error instead of syncing a partial list of 1000 users.
  • Lumos pages through each role’s members without the 1000-record cap, so role assignments sync completely too.

Instructions

Phase 1: Create a Machine to Machine application in Auth0
  1. Log in to Auth0 at https://auth0.com/.
  2. In Applications, click Create Application.
  3. Name it (for example, Lumos integration) and set its type to Machine to Machine Application.
  4. Authorize the application with the Auth0 Management API and select these permissions: read:users, read:roles.
  5. In the Settings tab, copy the Domain, Client ID, and Client Secret.
Lumos syncs every user and role in the tenant. You don’t need to select organizations in the Organizations tab, because the integration doesn’t use them. Phase 2: Gather the Management API Audience
  1. Go to the APIs tab and toggle Auth0 Management API to Authorized.
  2. Copy the API Identifier to use as your Auth0 Management API audience. The audience should be in the format https://<domain>/api/v2/.
Phase 3: Connect in Lumos
  1. Click the Auth0 card in your Lumos integrations (reconnect or add new).
  2. Provide the Client ID, Client Secret, Domain, and Management API Audience.
  3. Click the Connect button.

API Endpoints Used

Troubleshooting

Not all users or roles are appearing. The Auth0 integration syncs the whole tenant, not individual organizations or clients. Make sure the application was granted both read:users and read:roles. “Auth0 refused the bulk user export” error. Your tenant has 1000 or more users, and Lumos can only read that many users through Auth0’s bulk user export. This usually means your Auth0 plan doesn’t include bulk user export, for example the Free plan. Upgrade to an Auth0 plan that supports bulk user export. The next sync then reads all users. Authentication errors after connecting. Confirm the Management API Audience is in the format https://<domain>/api/v2/, and that the Client ID, Client Secret, and Domain were copied fully from the application’s Settings tab.