> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Auth0 Rules

> Learn about Rules and how you can use them to customize and extend Auth0's capabilities.

> [!WARNING]
>
> **Rules will reach end of life (EOL) on January 31, 2028.**
>
> * As of October 16, 2023, Rules are no longer available in newly created tenants.
> * As of November 18, 2024, Rules are read-only. Active Rules still run, and you can enable or disable them and change their configuration values and secrets. You can't edit their code in the Dashboard, the Management API, or tools that use it, such as the Auth0 CLI, Deploy CLI, Terraform, and Agent Skills.
> * **After January 31, 2028, Rules stop running and are removed.**

**Use Actions to extend Auth0:**

* To learn more about Actions, read [Understand How Auth0 Actions Work](https://auth0.com/docs/customize/actions/actions-overview.md).
* To migrate, read [Migrate from Rules to Actions](https://auth0.com/docs/customize/actions/migrate/migrate-from-rules-to-actions.md).

Rules can be used in a variety of situations as part of the authentication pipeline where protocol-specific artifacts are generated:

* an ID token (ID Token: Credential meant for the client itself, rather than for accessing a resource.) in OpenID (ID Token: Credential meant for the client itself, rather than for accessing a resource.) Connect (OIDC)
* an access token (Access Token: Authorization credential, in the form of an opaque string or JWT, used to access an API.) in OAuth 2.0 (Access Token: Authorization credential, in the form of an opaque string or JWT, used to access an API.)
* an assertion in SAML (Security Assertion Markup Language (SAML): Standardized protocol allowing two parties to exchange authentication information without a password.)

A new pipeline in which rules execute is created for each authentication request, and Rules are subject to Auth0's [Rate Limit Policy](https://auth0.com/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy).

| Read... | To learn... |
| - | - |
| [Rule Use Cases](https://auth0.com/docs/customize/actions/use-cases.md) | About different rule uses cases. |
| [Create Rules](https://auth0.com/docs/customize/rules/create-rules.md) | How to create rules using the Auth Dashboard or the Management API. |
| [Store Rule Configurations](https://auth0.com/docs/customize/rules/configuration.md) | How to use the global configuration object in rules for storing commonly used values. |
| [Cache Expensive Resources in Rules](https://auth0.com/docs/customize/rules/cache-resources.md) | How to use the `global` object to reuse resources stored there instead of creating them every time you run a rule. |
| [Debug Rules](https://auth0.com/docs/customize/rules/debug-rules.md) | How to debug rules. |
| [Use the Management API from Within Rules](https://auth0.com/docs/customize/rules/use-management-api.md) | How to access the Auth0 Management API endpoints from within rules. |
| [Redirect Users from Within Rules](https://auth0.com/docs/customize/rules/redirect-users.md) | How to use rules to redirect users before an authentication transaction is complete. |
| [User Object Properties in Rules](https://auth0.com/docs/customize/rules/user-object-in-rules.md) | About the `user` object and how it stores information logged in users returned by the identity provider. |
| [Context Object Properties in Rules](https://auth0.com/docs/customize/rules/context-object.md) | About the `context` object and how it stores contextual information about the current authentication transactions. |
| [Raise Errors from Rules](https://auth0.com/docs/customize/rules/raise-errors-from-rules.md) | How to display an error message to users from within rules. |
