> For the complete documentation index, see [llms.txt](https://docs.aviator.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aviator.co/mergequeue/how-to-guides/saml-configuration/microsoft-active-directory.md).

# Microsoft Active Directory

### Note for onprem users

Please replace *app.aviator.co* with with **aviator.yourdomain.com** in the instructions below.

### Azure Active Directory setup

1. Sign in to Azure portal using one of the following roles: Global Administrator, or Application Administrator.
2. Go to Azure Active Directory > Manage > Enterprise applications. Click **New application**.
3. Select Create your own application.
4. For name enter **Aviator**, and select Integrate any other application you don't find in the gallery (Non-gallery). Click **Create**.
5. (Optional): Go to properties and update the Aviator logo. Download the original from [<mark style="color:blue;">here</mark>](https://api.aviator.co/static/img/aviator_icon.png).
6. Log into Aviator and go to SAML configuration page: [<mark style="color:blue;">https://app.aviator.co/saml/okta/configure</mark>](https://app.aviator.co/saml/okta/configure)
7. Copy the unique Single Sign on url, of format: [<mark style="color:blue;">https://app.aviator.co/saml/sso/</mark>](https://app.aviator.co/saml/sso/)**\<sso-key>**
8. In the Azure portal, after creating the app, go to the app overview and click Single sign-on.
9. Select SAML.
10. In the Basic SAML configuration, enter Identifier (Entity ID) as **mergequeue**.
11. In the Reply URL, enter the URL you copied on step 6. Click Save.

<figure><img src="/files/qPiHdWU4qDlhEe593Kn5" alt=""><figcaption></figcaption></figure>

12. Under Attributes & Claims, add the following new claims and save. You can leave the other ones as is.
    1. Name: FirstName, Source attribute: user.givenname
    2. Name: LastName, Source attribute: user.surname
    3. Name: Email, Source attribute: user.primaryauthoritativeemail

<figure><img src="/files/rIuiz1Gy37q12qwNMiRC" alt=""><figcaption><p>Azure AD Attributes &#x26; Claims</p></figcaption></figure>

13. Copy the **App Federation Metadata Url** from SAML certificates and paste that in Aviator’s SAML configuration page **Metadata url**: [<mark style="color:blue;">https://app.aviator.co/saml/okta/configure</mark>](https://app.aviator.co/saml/okta/configure)
14. Enter the domain that you use for Active Directory, click **Save and Activate**. Now you should be able to login to the Aviator app using AD from your [<mark style="color:blue;">Application dashboard</mark>](https://myapplications.microsoft.com/#optIn).


---

# 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 dynamically by asking a question.

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

```
GET https://docs.aviator.co/mergequeue/how-to-guides/saml-configuration/microsoft-active-directory.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
