Auth0
Auth0 is a customer identity platform. The Auth0 connector reads your tenant through the Auth0 Management API and syncs users, organizations, roles and API permissions into Owlie. It can also create, update, block, unblock and delete Auth0 users, and add or remove their roles and organization memberships.
Capabilities
| Capability | Supported | Details |
|---|---|---|
| Sync | Yes | Users, organizations, roles and permissions, plus role assignments, role permissions, organization memberships and organization roles. |
| Incremental sync | No | Every run is a full sync. |
| Account provisioning | Yes | Users: create, update attributes, disable, enable and revoke. By default, revoking deletes the Auth0 user. |
| Grant writes | Yes | Tenant roles, organization membership and organization roles. |
| Notifications | No | |
| Custom operations | No |
Authentication
The connector has one authentication method, OAuth2 Client Credentials. Owlie signs in as an Auth0 machine-to-machine application that you create and authorize for the Management API. You own that application and its secret.
Get credentials from Auth0
- In the Auth0 Dashboard, go to Applications > Applications and select Create Application.
- Enter a name, such as
Owlie, choose Machine to Machine Applications, and select Create. - Select the Auth0 Management API. Choose the permissions listed below, then select Authorize.
- Open the application's Settings tab. Copy the Domain, Client ID and Client Secret.
Auth0's guide covers the same steps: Register machine-to-machine applications.
Owlie requests the scopes in the connector's Scopes field. The default list covers every feature below. If you only need some features, you can authorize fewer permissions and shorten the list to match.
| Feature | Management API permissions |
|---|---|
| Sync and connection test | read:users, read:organizations, read:organization_members, read:organization_member_roles, read:roles, read:role_members, read:resource_servers |
| User provisioning | create:users, update:users, delete:users |
| Password changes | read:users, update:users |
Tenant role writes (assigned_role) | update:users, create:role_members, delete:role_members |
| Organization membership writes | create:organization_members, delete:organization_members |
Organization role writes (organization_role) | read:organization_member_roles, create:organization_member_roles, delete:organization_member_roles |
| Organization writes | create:organizations, update:organizations, delete:organizations |
| Role writes | create:roles, update:roles, delete:roles |
The permission each endpoint accepts is listed in the Management API reference.
Connect Auth0 in Owlie
| Field | Required | What to enter |
|---|---|---|
| Auth0 Domain | Yes | Your tenant's host only, for example acme.us.auth0.com. Leave out https:// and any path. |
| Client ID | Yes | The machine-to-machine application's client ID. |
| Client Secret | Yes | The application's client secret. Owlie stores it as a secret. |
| Scopes | Yes | The Management API permissions Owlie requests. The default list covers every feature on this page. |
The connector rejects a domain that includes a scheme, a path, a query or spaces. The connection test gets a token from https://<domain>/oauth/token and reads one user
from the Management API.
Entities
| Entity | In Auth0 | Identifier | Key attributes | Sync | Create | Update | Delete | Grants (as target) |
|---|---|---|---|---|---|---|---|---|
| User | A user in any connection. This is the account entity. | user_id, or email | email, given_name, family_name, name, blocked, email_verified, last_login | Yes | Yes | Yes | Yes | No |
| Organization | An Auth0 Organization. | id, or name | name, display_name, metadata | Yes | Yes | Yes | Yes | member_of_organization |
| Role | A role from User Management > Roles. | id, or name | name, description | Yes | Yes | Yes | Yes | assigned_role, organization_role |
| Permission | One permission (scope) defined on one of your APIs. | The API identifier and permission name pair | permission_name, resource_server_identifier, resource_server_name, description | Yes | No | No | No | No |
Owlie shows a blocked Auth0 user as disabled. Permissions on Auth0's own system APIs, such as the Management API, aren't synced.
Grant kinds
| Grant kind | In Auth0 | Principal → target | Writable | Qualifiers | Passes access through |
|---|---|---|---|---|---|
assigned_role | A role assigned directly to a user, for the whole tenant. | User → Role | Yes | None | Yes: the user holds the role's permissions. |
role_permission | A permission included in a role. | Role → Permission | No | None | No |
member_of_organization | The user is a member of an organization. | User → Organization | Yes | None | No |
organization_role | A role the user holds inside one organization. | User → Role | Yes | organization: the organization's ID, which starts with org_. Required. | Yes, within that organization only. |
An organization role applies only inside its organization. Owlie keeps the organization with the
Grant, so an Admin role in one organization isn't read as Admin in another. A role that belongs to
one organization can be assigned only in that organization, while a tenant role can be assigned in
any organization. assigned_role takes tenant roles only. Owlie offers only those combinations.
Auth0 accepts an organization role only for a member of that organization. With Include required access automatically on, the default, Owlie adds the organization membership first whenever it adds an organization role, whether an administrator, a request, a policy or a review adds it. With the setting off, Owlie refuses an organization role for a user who isn't already a member, and alerts administrators when a request, policy or review is refused this way. See required access. If Auth0 refuses the membership, the organization role is marked failed without being sent, and retrying the role retries the membership with it.
Removing an organization role also removes the organization membership Owlie added for it, unless something else still holds that membership: a request or assignment of its own, a policy, or another organization role that needs it. Removing that membership also removes the organization roles that brought it, unless a policy holds one of them. Then the membership stays. If an organization role goes away some other way, for example because a policy stops granting it, Owlie removes the membership it brought on a later background pass, with the same exceptions.
Provisioning behaviour and limits
| Operation | What happens in Auth0 |
|---|---|
| Provision | Creates the user. |
| Password change | Sets the user's new password on their database connection, when the resource is linked to the person's password. The user must have exactly one database login. Owlie refuses accounts with none or several, and a password that breaks the connection's policy. |
| Update attributes | Updates the user's profile fields. |
| Disable | Sets the user's blocked flag, so the user can't sign in. |
| Enable | Clears the blocked flag. |
| Revoke | Removes the user's managed Grants, then deletes the Auth0 user by default. Deletion can't be undone in Auth0. To block the user instead, set the provisioning profile's revoke state to disabled. |
The default provisioning profile gives each new Auth0 user the Owlie identity's own email, sets a
random 24-character password, and marks the email as verified. An identity with no email isn't
provisioned: Owlie stops before calling Auth0 and reports the missing email. Users are created in
the Username-Password-Authentication database connection by default. If your users belong in
another connection, change it in the provisioning profile before you provision.
Adding a Grant the user already has succeeds without a change, and so does removing a Grant the user no longer has. A removal fails if Owlie can't find the user or the role, so a renamed role or a changed email is reported instead of being treated as done.
Limits:
- User sync reads every user, however many. Auth0 returns at most 1,000 users for one search (Auth0 documentation), so Owlie reads users in creation order, one narrowed search at a time. A sync fails, rather than skipping users, only if more than 1,000 users share the exact same creation time, to the millisecond.
- When Auth0 rate-limits a request (HTTP 429), Owlie reports a temporary error that can be retried after the delay Auth0 asks for.
- Owlie doesn't create, change or delete organizations, roles or permissions through provisioning. It doesn't sync or write permissions assigned directly to users, and it doesn't write role permissions.
Troubleshooting
"Auth0 domain must be the bare tenant host, for example acme.us.auth0.com." The Auth0 Domain
field includes https:// or a path. Enter the host only.
The connection test fails with "Connection failed". Owlie couldn't get a token or read users.
Check the domain, client ID and client secret, and that the application is authorized for the Auth0
Management API with read:users.
An organization role write fails with "user … is not a member of organization …". Add the
user's member_of_organization Grant for that organization first, then retry the role.
An organization role write fails with qualifier "organization" must match ^org_[A-Za-z0-9_-]+$.
The organization qualifier must be the organization's ID, such as org_4sMa3X2kxfzDrVyJ, not its
name.
Changelog
The Auth0 connector is at version 1. Owlie shows each connector's changelog with the connector in the catalog.