> For the complete documentation index, see [llms.txt](https://docs.pixiebrix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pixiebrix.com/enterprise-it-setup/authentication/enabling-login-with-microsoft.md).

# Enabling Login with Microsoft

## Application Consent <a href="#block-b300d17d13604ea9a4bb412ca9e661c9" id="block-b300d17d13604ea9a4bb412ca9e661c9"></a>

To authenticate with PixieBrix using "Login with Microsoft", consent must be enabled in [Azure Entra ID](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/user-admin-consent-overview).

### Method #1: consent on behalf of your Azure organization as a Global Administrator <a href="#block-b300d17d13604ea9a4bb412ca9e661c9" id="block-b300d17d13604ea9a4bb412ca9e661c9"></a>

1. Sign into the [PixieBrix Admin Console](/platform-overview/admin-console.md) with Login with Microsoft
2. Select your Azure Account with a Global Administrator Role
3. On the permission prompt, check the “Consent on behalf of your organization” box
4. Click Accept

For more information, [see Microsoft Developer Documentation](https://learn.microsoft.com/en-us/azure/active-directory/develop/application-consent-experience#app-requires-a-permission-that-the-user-has-the-right-to-grant)

### Method #2: enable user consent for Azure apps from verified publishers, for select permissions <a href="#block-df921827fc624457ab75cb3d85f19d19" id="block-df921827fc624457ab75cb3d85f19d19"></a>

See [Microsoft Entra ID Documentation](https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/configure-user-consent?pivots=portal#configure-user-consent-settings)

1. Sign in to the [Azure portal](https://portal.azure.com/) as a [Global Administrator](https://learn.microsoft.com/en-us/azure/active-directory/roles/permissions-reference#global-administrator).
2. Select **Azure Active Directory** > **Enterprise applications** > **Consent and permissions** > **User consent settings**.
3. Under **User consent for applications**, select which consent setting you want to configure for all users.
4. Select **Save** to save your settings.

## Troubleshooting <a href="#block-cc4526ce51bd4d479a1a444b369b0fa2" id="block-cc4526ce51bd4d479a1a444b369b0fa2"></a>

### I received a “Need admin approval” message when using Login with Microsoft <a href="#block-11f231bb752447c68bb72fb5889487f7" id="block-11f231bb752447c68bb72fb5889487f7"></a>

{% hint style="info" %}
This problem requires your IT (Microsoft Azure) Administrator to solve. Please contact your Azure administrator and provide a link to this documentation page. Our support team at <support@pixiebrix.com> can provide assistance.
{% endhint %}

The "Need admin approval" message indicates that your IT (Microsoft Azure) Administrator needs to add PixieBrix to the allowlist for your organization.

The error is caused by the Enterprise setting in Entra ID for “*User consent for applications”.* Your Azure administrator must update this setting to allow consent for PixieBrix.

## Frequently Asked Questions <a href="#block-4ab2bdb353a04445b8d6de152575fbae" id="block-4ab2bdb353a04445b8d6de152575fbae"></a>

### What scopes does PixieBrix request for Login with Microsoft? <a href="#block-4a7c6a943d994f1c8f35fd4b104f504d" id="block-4a7c6a943d994f1c8f35fd4b104f504d"></a>

PixieBrix requests the following scopes during authentication:

| Scope                                                                                                         | Description                   |
| ------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| [openid](https://learn.microsoft.com/en-us/azure/active-directory/develop/scopes-oidc#openid-connect-scopes)  | Sign users in                 |
| [profile](https://learn.microsoft.com/en-us/azure/active-directory/develop/scopes-oidc#openid-connect-scopes) | View user's basic profile     |
| [User.Read](https://learn.microsoft.com/en-us/graph/permissions-reference#remarks-16)                         | Sign in and read user profile |
| [email](https://learn.microsoft.com/en-us/azure/active-directory/develop/scopes-oidc#email)                   | View user's email address     |

### What’s the PixieBrix Azure Application Id? <a href="#block-a7976c069ef24e97a90fd00dc898f85f" id="block-a7976c069ef24e97a90fd00dc898f85f"></a>

The PixieBrix application id is: `add06cfe-a38f-443f-9572-dd92ec7ab06b`<br>


---

# 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.pixiebrix.com/enterprise-it-setup/authentication/enabling-login-with-microsoft.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.
