> For the complete documentation index, see [llms.txt](https://docs.fenixpyre.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fenixpyre.com/fenixpyre-for-admins/admin-dashboard/identity-and-provisioning/saml-single-sign-on-sso-setup/set-up-saml-sso-with-azure.md). Agents can also search and read this documentation through its [MCP server](https://docs.fenixpyre.com/~gitbook/mcp).

# Set-up SAML SSO with Azure

Setup Single Sign-on with Azure enterprise application

1. Sign-in to your Azure admin portal
2. In the left menu bar, click on Microsoft Entra ID

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2FtWO1z1T88O8ZMkSn6tcd%2FScreenshot%202025-01-30%20at%204.03.54%20PM.png?alt=media&amp;token=e1335e2b-d6ba-40d7-8ff3-dfa6976a0bda" alt=""><figcaption></figcaption></figure>

3. Click on **Enterprise applications** in the left menu bar
4. In the Enterprise applications page, click on **New application**
5. In the **Browse Microsoft Entra Gallery** page, click on **Create your own application**

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2FedBUkB6t77WvtWVr9Hpe%2FScreenshot%202025-01-30%20at%204.04.21%20PM.png?alt=media&amp;token=2e5565a8-ddb8-472d-86db-284845347e80" alt=""><figcaption></figcaption></figure>

6. In the **Create your own application**,
   1. Enter a name for the application. For example **fp-saml-sso-application**
   2. Select **Integrate any other application you don't find in the gallery (Non-gallery)**

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2FSBcrbgyO7oGckyulhSMD%2FScreenshot%202025-01-30%20at%204.05.22%20PM.png?alt=media&amp;token=6e55056c-9697-47c9-bbf1-182ac3f2b62f" alt=""><figcaption></figcaption></figure>

7. Click on the **Create** button
8. In the newly created application page, select **Single sign-on** in the left menu bar

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2FDIH6a7xmRvHWghlU7jNu%2FScreenshot%202025-01-30%20at%204.07.23%20PM.png?alt=media&amp;token=5159d2d8-1094-45f7-b858-5a7cd88f22f4" alt=""><figcaption></figcaption></figure>

9. Select SAML in the **Select a single sign-on method**

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2FUY1pK5eWIMsPuYNtK7Sr%2FScreenshot%202025-01-30%20at%204.10.47%20PM.png?alt=media&amp;token=ae900416-0bd7-40b7-93f5-19c50aa60473" alt=""><figcaption></figcaption></figure>

10. In the **Set up Single Sign-On with SAML** page, click on the Edit icon under **Basic SAML configuration**

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2FBXBNx4Z7UtWp3Sdw8kqt%2FScreenshot%202025-01-30%20at%204.11.15%20PM.png?alt=media&amp;token=ef147e21-3921-46c6-b6ac-b4d6e463b114" alt=""><figcaption></figcaption></figure>

11. On the configuration page, click on the **Add Identifier** button

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2FKkpjshOgwJvn1CxCanZr%2FScreenshot%202025-01-30%20at%204.12.49%20PM.png?alt=media&amp;token=ddfcfe26-5a76-4bf7-9efe-4e910c2ecb43" alt=""><figcaption></figcaption></figure>

12. Now you will need to get the following values from the Fenixpyre admin dashboard.
    1. Identifier (Entity ID)
    2. Reply URL (Assertion Consumer Service URL)
    3. Sign on URL
13. Sign in to the Fenixpyre admin dashboard
14. Click on Identity & Provisioning under Security in Settings (Left Navigation Menu)

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2F8Iq1pPJU0C6E4pKLP5BU%2FScreenshot%202025-01-30%20at%204.21.38%20PM.png?alt=media&amp;token=ca99e03b-0efa-4114-b19c-44c6ddfb780d" alt=""><figcaption></figcaption></figure>

15. Switch to SAML SSO Tab

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2F45GtKiLQLHlTwYV3P6fi%2FScreenshot%202025-01-30%20at%204.21.50%20PM.png?alt=media&amp;token=2b4a669b-6919-40d6-92a2-483186cc398e" alt=""><figcaption></figcaption></figure>

16. Click on **Add new SAML SSO** and select **Setup Azure AD SAML SSO**

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2FoDu3ETcEjALuPMBrnuXP%2FScreenshot%202025-01-30%20at%204.21.59%20PM.png?alt=media&amp;token=22b536b4-d99e-4d02-b4b2-628f42f648ad" alt=""><figcaption></figcaption></figure>

17. You will be presented with a dialogue which contains the following values:
    1. Identifier (Entity ID)
    2. Reply URL (Assertion Consumer Service URL)
    3. Sign on URL

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2F7R5lFGykBGHN4rkpaVpv%2FScreenshot%202025-01-30%20at%204.22.09%20PM.png?alt=media&amp;token=6704f119-8882-4309-b006-9b52935610bb" alt=""><figcaption></figcaption></figure>

18. Copy the **Identifier (Entity ID)**, **Reply URL (Assertion Consumer Service URL)**, and **Sign on URL** and paste it in the **Azure Basic SAML configuration** page like shown below.

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2Fa4owD7d1YcrVV2GIZ8C3%2FScreenshot%202025-01-30%20at%204.23.34%20PM.png?alt=media&amp;token=373815db-97a5-4fce-b7de-18ebfe67feca" alt=""><figcaption></figcaption></figure>

19. Click on the **Save** button, You will navigated back to the SSO landing page.

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2FKze0KyrxWfeXAcfvd5pL%2FScreenshot%202025-01-30%20at%204.26.53%20PM.png?alt=media&amp;token=2cf5a111-b227-4f98-b35d-795d062be5e5" alt=""><figcaption></figcaption></figure>

20. Click on the **Permissions** in the left menu bar and then click on **app registration**.
21. In the API permissions page, click on **Add a permission**
22. Add the following API permissions
    1. Microsoft Graph -> Delegated permissions -> User.Read
    2. Microsoft Graph -> Delegated permissions -> Directory.Read.All

{% embed url="<https://www.loom.com/share/433646d0cc57458aa1eda49c22f2ece1?sid=02d55527-387d-4d97-9134-acb3a7f1d650>" %}

23. Click on \*\*Grant admin consent \*\*
24. Go back to **Enterprise applications** -> find the **fp-saml-sso-application**, and then click on **Single sign-on**.
25. Download the Base64 certificate, and copy the **Login URL**

{% embed url="<https://www.loom.com/share/2af2d979ada7482d97a112567a858a0f?sid=41abea10-4dc7-48c6-9c80-bd5e3797a92a>" %}

26. Paste the **Login URL** in the **Sign-in URL** field on the Fenixpyre dashboard, and upload the Base64 certificate you downloaded to the Fenixpyre dashboard.

{% embed url="<https://www.loom.com/share/deccce5e2d8d4b1d9fac3b96dbf9c68d?sid=f7130a23-b3c6-4bbe-8d93-27a518017a5c>" %}

27. You will see a success dialogue box if the setup is successful.
28. Click on **Close** or **Logout and verify the connection** to verify the newly added SAML SSO.

### Attribute mapping <a href="#user-content-attribute-mapping" id="user-content-attribute-mapping"></a>

FenixPyre uses the claims Azure sends during sign-in to identify each user. Most Azure Enterprise applications already include the right claims, so you'll usually only need to check them.

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2FS3XbpYhjqUua6FcRNN0W%2FScreenshot%202026-11-05%20at%202.04.56%E2%80%AFPM.png?alt=media&amp;token=649bba82-5a6d-4713-a225-168ab4acacbd" alt=""><figcaption></figcaption></figure>

#### Step 1: Open Attributes & Claims <a href="#user-content-step-1-open-attributes--claims" id="user-content-step-1-open-attributes--claims"></a>

1. In the Azure portal, go to **Enterprise applications** and open your FenixPyre application & Select **Single sign-on**.
2. In the **Attributes & Claims** section, click **Edit**.

#### Step 2: Check the default claims <a href="#user-content-step-2-check-the-default-claims" id="user-content-step-2-check-the-default-claims"></a>

Azure usually adds these claims for you.

**Required claim**

| Claim name                       | Value                    |
| -------------------------------- | ------------------------ |
| Unique User Identifier (Name ID) | `user.userprincipalname` |

**Additional claims**

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2FzRiDi2KNjYwp482UXkn4%2FScreenshot%202026-11-05%20at%202.07.38%E2%80%AFPM.png?alt=media&amp;token=f4b5272d-8dfe-4876-8232-44498f55ea07" alt=""><figcaption></figcaption></figure>

✅ **If your list matches the screenshot above, you don't need to change anything.** Go to Step 4.

> **Important:** The **Name ID** must be the user's FenixPyre email address. Keep `user.userprincipalname` if each user's UPN is the same as their FenixPyre email. If it isn't, change the Name ID to the attribute that holds the FenixPyre email, such as `user.mail`.

#### Step 3: Add any missing claims <a href="#user-content-step-3-add-any-missing-claims" id="user-content-step-3-add-any-missing-claims"></a>

Do this only if a claim from the screenshot above is missing.

1. Click **+ Add new claim**.
2. Fill in the fields using the table below:
   * **Name**: the claim name
   * **Namespace**: `http://schemas.xmlsoap.org/ws/2005/05/identity/claims`
   * **Source**: **Attribute**
   * **Source attribute**: pick the value from the dropdown
3. Click **Save**.

| Name           | Namespace                                               | Source attribute         |
| -------------- | ------------------------------------------------------- | ------------------------ |
| `emailaddress` | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims` | `user.mail`              |
| `givenname`    | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims` | `user.givenname`         |
| `surname`      | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims` | `user.surname`           |
| `name`         | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims` | `user.userprincipalname` |

Examples:

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2F4si8mGXdlMlu8b0QAslJ%2FScreenshot%202026-11-05%20at%202.08.49%E2%80%AFPM.png?alt=media&amp;token=f08feb0a-af1e-418b-88b9-e5b8c09f8b5a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2FSGAGnRkTxAxyNXpgTODX%2FScreenshot%202026-11-05%20at%202.09.08%E2%80%AFPM.png?alt=media&amp;token=3eddcb8c-0ef0-4dfb-ace0-b4fcc6cc7217" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2Fbg3GUvlDDL6WrCiGzbGd%2FScreenshot%202026-11-05%20at%202.09.33%E2%80%AFPM.png?alt=media&amp;token=8c00bb68-ce70-4c68-9b7b-6906768ab975" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2FdqVfag2c6zarZVvee3KU%2FScreenshot%202026-11-05%20at%202.09.24%E2%80%AFPM.png?alt=media&amp;token=372fedd8-4446-4dad-8473-a82e65ca6909" alt=""><figcaption></figcaption></figure>

> **Tip:** If your users don't have a **Mail** value in Azure (the `user.mail` field is empty), set the `emailaddress` claim's source attribute to **`user.userprincipalname`** instead.

#### Step 4: Save before testing <a href="#user-content-step-4-save-before-testing" id="user-content-step-4-save-before-testing"></a>

Click **Save** on every claim you changed **before** you test SSO. Unsaved changes won't be included in sign-in.


---

# 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.fenixpyre.com/fenixpyre-for-admins/admin-dashboard/identity-and-provisioning/saml-single-sign-on-sso-setup/set-up-saml-sso-with-azure.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.
