# 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![image](https://images.spr.so/cdn-cgi/imagedelivery/j42No7y-dcokJuNgXeA0ig/b4726b4b-a7ee-45d0-ba9a-fc6c8156ed2f/Untitled/w=640,quality=80)
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.

<figure><img src="https://images.spr.so/cdn-cgi/imagedelivery/j42No7y-dcokJuNgXeA0ig/f387ff0a-7c11-43e2-af0f-c5a7989084be/Untitled/w=1200,quality=80" alt=""><figcaption></figcaption></figure>

## 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.

<figure><img src="https://images.spr.so/cdn-cgi/imagedelivery/j42No7y-dcokJuNgXeA0ig/14587ba7-9c3a-43fc-94ea-b3490a4f7213/Untitled/w=640,quality=80" alt="" width="375"><figcaption></figcaption></figure>

The error is caused by Enterprise settings in Entra ID setting for “*User consent for applications”:*

<figure><img src="https://images.spr.so/cdn-cgi/imagedelivery/j42No7y-dcokJuNgXeA0ig/dffb364f-5d44-4fbd-8aea-82cb510e95c9/Untitled/w=1920,quality=80" alt=""><figcaption></figcaption></figure>

## 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: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pixiebrix.com/enterprise-it-setup/authentication/enabling-login-with-microsoft.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
