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

# Action Use Cases

> Explore a variety of examples of implementations using Actions.

> [!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).

The following is a list of Actions for implementing a variety of functionality in Auth0.

## Access Control

* [Allow access only on weekdays for a specific application](https://auth0.com/docs/manage-users/access-control/sample-use-cases-actions-with-authorization.md#allow-access-only-on-weekdays-for-a-specific-application)
* [Allow access only to users who are inside the corporate network](https://auth0.com/docs/manage-users/access-control/sample-use-cases-actions-with-authorization.md#allow-access-only-to-users-who-are-inside-the-corporate-network)
* [Only allow users with specific email addresses to log in](https://auth0.com/docs/customize/actions/explore-triggers/post-login.md#access-control)

## API Authorization

* [Add user roles to tokens](https://auth0.com/docs/manage-users/access-control/sample-use-cases-actions-with-authorization.md#add-user-roles-to-tokens)
* [Add a user's email address to the Access Token](https://auth0.com/docs/get-started/architecture-scenarios/mobile-api/api-implementation-nodejs.md#4-determine-the-user-identity)
* [Deny access to anyone calling an API](https://auth0.com/docs/manage-users/access-control/sample-use-cases-actions-with-authorization.md#deny-access-to-anyone-calling-an-api)
* [Add custom claims to a token](https://auth0.com/docs/get-started/apis/scopes/sample-use-cases-scopes-and-claims.md#add-custom-claims-to-a-token)

## Compliance

* [Update user profile metadata with user consent choice and redirect users to a consent page hosted by a third party](https://auth0.com/docs/secure/data-privacy-and-compliance/gdpr/gdpr-track-consent-with-lock.md)
* [Enable Strong Customer Authentication (SCA) and dynamically link operation details to authorize a sensitive transaction](https://auth0.com/docs/secure/highly-regulated-identity/transactional-authorization-with-authorization-code-flow.md)

## Multifactor

* [Require Multi-factor Authentication for users who are outside the corporate network](https://auth0.com/docs/customize/actions/explore-triggers/post-login.md#enforce-custom-mfa-policy)

## User Profile and Identity

* [Set a default user picture](https://auth0.com/docs/manage-users/user-accounts/change-user-picture.md#change-default-picture-for-all-users)
* [Retrieve user preferences from an external source and add to the user identity](https://auth0.com/docs/actions/reference/pre-user-registration/pre-user-registration-event-object.md#store-a-user-id-from-another-system-in-the-user-profile)
