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

# Microsoft Entra (Azure AD)

> Connect your AI agents to Microsoft Entra services including Outlook, Teams, OneDrive, and more.

The Microsoft Entra integration allows users to authenticate with your AI agents using their Microsoft Entra identity. This integration provides access to Microsoft's ecosystem of applications and services and is essential for B2B scenarios where users need to access their work data and collaborate through Microsoft services.

## Connect Microsoft Entra with Auth0

To set up a Microsoft Entra connection with Auth0, follow the [Connect Your App to Microsoft Entra](https://auth0.com/docs/authenticate/identity-providers/enterprise-identity-providers/azure-active-directory/v2.md) detailed guide.

This guide walks you through setting up the **Microsoft Entra** connection in Auth0.
For an end-to-end example that shows how to set up your app to call third-party APIs on the user's behalf
using a connection like this, read the
[Call third-party APIs on user's behalf quickstart](https://auth0.com/ai/docs/get-started/call-third-party-apis-on-users-behalf.md).

## Token Vault configuration example

To configure the Token Vault for your Microsoft Entra connection, you can use the following code snippet in your application:

**JavaScript**

**Python**

## Next steps

* To learn how to configure applications to access Token Vault, read [Configure Token Vault](https://auth0.com/docs/secure/call-apis-on-users-behalf/token-vault/configure-token-vault.md).
* If your application uses [Organizations](https://auth0.com/docs/manage-users/organizations.md), authenticate the user with the target organization before initiating the Connected Accounts flow. Connected accounts remain linked to the individual user profile.
* To learn how to get an access token to make a tool call, complete the [Call third-party APIs on user's behalf Quickstart](https://auth0.com/ai/docs/get-started/call-third-party-apis-on-users-behalf.md).
