> ## Documentation Index
> Fetch the complete documentation index at: https://support.affinity.co/llms.txt
> Use this file to discover all available pages before exploring further.

# How To Set Up Azure SAML For Affinity Access

> Help center reference: How To Set Up Azure SAML For Affinity Access

<Note>
  **How-to** — task-oriented recipe.
</Note>

Set up a custom application within Azure for authentication into Affinity.

**Note:** Custom SSO is only available for our **Enterprise** tier customers.

1. From the Azure Home page, click on **Enterprise applications** on the left sidebar. <img src="https://mintcdn.com/support-affinity/gNHMiKP2aDiIOSeo/images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/1.jpg?fit=max&auto=format&n=gNHMiKP2aDiIOSeo&q=85&s=b2e8a0ffecf6cc51e638daf8228ff2fd" width="2274" height="1116" data-path="images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/1.jpg" />
2. Then, click **New Application**. <img src="https://mintcdn.com/support-affinity/gNHMiKP2aDiIOSeo/images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/2.jpg?fit=max&auto=format&n=gNHMiKP2aDiIOSeo&q=85&s=8c56be5bde44115f4a26b048264a29f2" width="2284" height="800" data-path="images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/2.jpg" />
3. Then, click **Create your own application**. <img src="https://mintcdn.com/support-affinity/gNHMiKP2aDiIOSeo/images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/3.jpg?fit=max&auto=format&n=gNHMiKP2aDiIOSeo&q=85&s=070316de72f6fa090ef8befa76425145" width="1430" height="652" data-path="images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/3.jpg" />
4. In the slide out, type in the name of the application. <img src="https://mintcdn.com/support-affinity/gNHMiKP2aDiIOSeo/images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/4.jpg?fit=max&auto=format&n=gNHMiKP2aDiIOSeo&q=85&s=819290a8f5dbd2cdf54edf7bb525b2c3" width="1168" height="866" data-path="images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/4.jpg" />
5. Once the application is created, click the **Single-sign on** option on the left sidebar, then click **SAML**. <img src="https://mintcdn.com/support-affinity/gNHMiKP2aDiIOSeo/images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/5.jpg?fit=max&auto=format&n=gNHMiKP2aDiIOSeo&q=85&s=4a189246637aeffd0ecbb201f9eea61c" width="1652" height="1140" data-path="images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/5.jpg" />
6. There are two required fields you must fill out:
   1. **Entity ID** (Identifier) - type out "affinity" in lowercase. The Entity ID can be set to something other than "affinity", but if so, please provide it during the following step below.
   2. **Reply URL** (Assertion Consumer Service URL / ACS URL) - copy and paste this link:  `https://login.affinity.co/auth/{subdomain}/sso/saml-callback`but make sure to replace **subdomain** with your actual [Affinity subdomain](/s/article/How-to-find-your-Affinity-subdomain). <img src="https://mintcdn.com/support-affinity/gNHMiKP2aDiIOSeo/images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/6.jpg?fit=max&auto=format&n=gNHMiKP2aDiIOSeo&q=85&s=6dabc633acf57c9f173d570747ff8f03" width="3052" height="876" data-path="images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/6.jpg" />
7. Now, to confirm you have the appropriate claims, click **Edit** within the **Attributes & Claims** section. <img src="https://mintcdn.com/support-affinity/gNHMiKP2aDiIOSeo/images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/7.jpg?fit=max&auto=format&n=gNHMiKP2aDiIOSeo&q=85&s=68c6c5035d4c0a55a87c38d437c3c066" width="1394" height="746" data-path="images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/7.jpg" />
8. Then, make sure that the following claim is there since they are required:
   1. `…/claims/emailaddress` ... `user.mail`. The other claims can be removed (optional). <img src="https://mintcdn.com/support-affinity/gNHMiKP2aDiIOSeo/images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/8.jpg?fit=max&auto=format&n=gNHMiKP2aDiIOSeo&q=85&s=aaf7cff50a26fdbaf356f176c5012991" width="1458" height="848" data-path="images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/8.jpg" />
9. Finally, head back to the SAML configuration page. Affinity requires that you provide the **entity ID and the metadata URL/XML** file. The metadata can be sent as an XML file, but preferably, we would like the Metadata URL that links to the raw data. <img src="https://mintcdn.com/support-affinity/gNHMiKP2aDiIOSeo/images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/9.jpg?fit=max&auto=format&n=gNHMiKP2aDiIOSeo&q=85&s=5ac3e63bcf2987d6796a21e2ec52baa3" width="1372" height="1142" data-path="images/admin-account-auth/how-to-set-up-azure-saml-for-affinity-access/9.jpg" />
