> 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). Agents can also search and read this documentation through its [MCP server](https://docs.aviator.co/~gitbook/mcp).

# Microsoft Active Directory

Learn how to set up SAML configuration with Microsoft Active Directory. We provide step-by-step instructions and samples to take you through the process.

### 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="https://273246003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAPqUQVbLbsfI5YESl32%2Fuploads%2FUkzksF01ICcI52cn4k4R%2FScreen%20Shot%202023-04-01%20at%205.20.51%20PM.png?alt=media&amp;token=86f52284-3bf5-47f3-9040-71d33d709902" 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="https://273246003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAPqUQVbLbsfI5YESl32%2Fuploads%2FX3Qp3U268VFCEQW4Z32t%2FScreen%20Shot%202023-04-01%20at%205.20.17%20PM.png?alt=media&amp;token=4d72ba05-23cd-4245-8768-19176c09996b" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.aviator.co/mergequeue/how-to-guides/saml-configuration/microsoft-active-directory.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.
