> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/integrations/catalog/auth0.md).

# Auth0

Manage identities in Auth0: create users, control access, and administer your tenant through the Management API.

### Connectors

Choose the connector that matches your authentication method. The options below use the names shown in StackAI.

| Connector | Authentication |
| --------- | -------------- |
| Auth0     | Credentials    |

#### Auth0

Connect to the Auth0 Management API with a Machine to Machine application to manage users, roles, and sessions.

**Set up in Auth0**

1. Prepare the Auth0 account or service that the workflow will access. Grant access to the required resources and operations.
2. **Tenant Domain:** Your Auth0 tenant domain, shown in Dashboard > Applications > your app > Settings > Domain.

**Set up in StackAI**

1. Open **Settings → Connections**, add a connection, and select **Auth0**.
2. Enter the credentials and connection details in the fields below.
3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

**Connection fields**

| StackAI field | Required | What to enter                                                                                                                                                    |
| ------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Tenant Domain | Yes      | Your Auth0 tenant domain, shown in Dashboard > Applications > your app > Settings > Domain. [Provider instructions](https://manage.auth0.com/#/applications).    |
| Client ID     | Yes      | Client ID of a Machine to Machine application that is authorized for the Auth0 Management API. [Provider instructions](https://manage.auth0.com/#/applications). |
| Client Secret | Yes      | Client Secret of the same Machine to Machine application. [Provider instructions](https://manage.auth0.com/#/applications).                                      |

#### Verify the connection

Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.

If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.

### Use an action

1. Add the required **Auth0** action to the workflow.
2. Select a connection when the action requests one.
3. Complete the required fields. Use the reference picker when a value comes from another workflow step.
4. Run the workflow and inspect the action’s output. Check the result before using it in a later step.

### Actions

#### Create User

Create a new user in Auth0.

**Inputs**

| Field                   | Type            | Required | Description                                                                                                                                      |
| ----------------------- | --------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| Email                   | string          | Yes      | Email address of the user to create.                                                                                                             |
| Identity Connection     | select (string) | No       | Select the identity connection, or type its name manually. Options load from the selected connection. Default: Username-Password-Authentication. |
| Password                | secret          | No       | Initial password (required for database connections).                                                                                            |
| Full Name               | string          | No       | Display name of the user.                                                                                                                        |
| Send Verification Email | boolean         | No       | Whether Auth0 sends a verification email to the new user.                                                                                        |
| User Metadata (JSON)    | textarea        | No       | Optional JSON object stored as the user's user\_metadata.                                                                                        |

**Outputs**

| Field          | Type   | Description                    |
| -------------- | ------ | ------------------------------ |
| User           | object | The created Auth0 user.        |
| User ID        | string | Unique ID of the created user. |
| Email          | string | Email of the created user.     |
| Result Message | string | Human-readable result summary. |

#### Block User

Block or unblock a user in Auth0.

**Inputs**

| Field | Type            | Required | Description                                                                                            |
| ----- | --------------- | -------- | ------------------------------------------------------------------------------------------------------ |
| User  | select (string) | Yes      | Select the user to block or unblock, or type their user ID. Options load from the selected connection. |
| Block | boolean         | No       | On blocks the user; off unblocks a previously blocked user. Default: true.                             |

**Outputs**

| Field          | Type    | Description                      |
| -------------- | ------- | -------------------------------- |
| User           | object  | The updated Auth0 user.          |
| User ID        | string  | Unique ID of the updated user.   |
| Blocked        | boolean | Whether the user is now blocked. |
| Result Message | string  | Human-readable result summary.   |

#### Assign Roles to User

Assign one or more roles to an Auth0 user.

**Inputs**

| Field | Type            | Required | Description                                                                                                 |
| ----- | --------------- | -------- | ----------------------------------------------------------------------------------------------------------- |
| User  | select (string) | Yes      | Select the user to assign roles to, or type their user ID. Options load from the selected connection.       |
| Roles | select (string) | Yes      | Select a role, or type one or more role IDs separated by commas. Options load from the selected connection. |

**Outputs**

| Field           | Type   | Description                                |
| --------------- | ------ | ------------------------------------------ |
| User ID         | string | ID of the user the roles were assigned to. |
| Role IDs        | array  | IDs of the roles requested for assignment. |
| Requested Count | number | Number of roles requested for assignment.  |
| Result Message  | string | Human-readable result summary.             |

#### Trigger Password Reset

Create a one-time password-change link for an Auth0 user.

**Inputs**

| Field                  | Type            | Required | Description                                                                                                        |
| ---------------------- | --------------- | -------- | ------------------------------------------------------------------------------------------------------------------ |
| User                   | select (string) | Yes      | Select the user who should reset their password, or type their user ID. Options load from the selected connection. |
| Redirect URL           | string          | No       | Where the user is redirected after changing their password.                                                        |
| Link Expiry (seconds)  | integer         | No       | How long the password-change link stays valid, in seconds.                                                         |
| Mark Email as Verified | boolean         | No       | Whether completing the reset also marks the user's email as verified.                                              |

**Outputs**

| Field          | Type   | Description                                 |
| -------------- | ------ | ------------------------------------------- |
| Ticket URL     | string | One-time password-change link for the user. |
| User ID        | string | ID of the user the ticket was created for.  |
| Result Message | string | Human-readable result summary.              |

#### Revoke User Sessions

Sign an Auth0 user out of all active sessions.

**Inputs**

| Field | Type            | Required | Description                                                                                               |
| ----- | --------------- | -------- | --------------------------------------------------------------------------------------------------------- |
| User  | select (string) | Yes      | Select the user to sign out everywhere, or type their user ID. Options load from the selected connection. |

**Outputs**

| Field          | Type   | Description                                 |
| -------------- | ------ | ------------------------------------------- |
| User ID        | string | ID of the user whose sessions were revoked. |
| Result Message | string | Human-readable result summary.              |

### Important behavior

Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.

The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/integrations/catalog/auth0.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
