Skip to content
⌘K
InboxAsk a human

Microsoft Entra ID (Azure AD) + Enterpret: SAML SSO setup

Updated by Vaishnavi

Written by Team Enterpret

Configuration notes: screenshots may show older Enterpret labels; follow the current controls described below.


Overview

Single Sign-On (SSO) allows users to log in to Enterpret using their organization’s Microsoft Azure AD (Microsoft Entra ID) credentials. Enterpret supports SAML 2.0–based SSO.

Configure the SAML attributes, test sign-in, and choose whether to let users start from the Microsoft Entra portal.


🔐 Understanding SAML Login Flows (Read This First)

Enterpret’s SAML setup supports sign-in started from Enterpret and sign-in started from the configured Microsoft My Apps tile. Test each flow you intend to use.


SP-Initiated SSO

What it is

  • Login starts from Enterpret

  • User is redirected to Azure AD to authenticate

Flow

  1. User opens the Enterpret login page

  2. Clicks Sign in with SSO

  3. Redirected to Azure AD

  4. Authenticates

  5. Redirected back to Enterpret

Why this matters

  • ✅ No manually configured Default RelayState is needed for this Enterpret-started flow.

  • Test sign-in from Enterpret first and confirm it works before enforcing SSO.


IDP-Initiated SSO

What it is

  • Login starts from Azure AD

  • User clicks the Enterpret app in the Microsoft My Apps portal

Key difference

  • ❗ Requires RelayState

  • Without the copied RelayState, Cognito lacks the app-client and redirect context needed to complete this portal-started sign-in.


What Is RelayState?

RelayState is a value copied from Enterpret that supplies the SAML portal sign-in context to Amazon Cognito, including:

The configured identity provider, app client, callback URL, response type and scopes. Copy your workspace’s value; do not reuse a screenshot’s example.

  • SP-initiated SSO → no manual Default RelayState configuration needed

  • IDP-initiated SSO → RelayState required


Prerequisites

Before starting, ensure you have:

  • Permission to configure SSO in your Enterpret workspace.

  • Admin access to Azure AD (Microsoft Entra ID)

  • Permission to create Enterprise Applications

  • An email claim containing the email address used for the user’s Enterpret workspace access.


High-Level Setup Flow

  1. Create a non-gallery Enterprise Application in Azure

  2. Configure SAML settings

  3. Configure email attribute claims

  4. Copy Metadata URL

  5. Configure SSO in Enterpret

  6. Test SP-initiated login

  7. Enable IDP-initiated login


Step 1: Create an Enterprise Application in Azure AD

  1. Log in to the Azure Portal

  2. Navigate to Microsoft Entra ID → Enterprise Applications

    Microsoft Entra admin center search results with Enterprise applications available.
  3. Click New application

    Enterprise applications page with the New application button.
  4. Click Create your own application

    Microsoft Entra App Gallery with Create your own application.
  5. Enter:

    • Name: Enterpret SAML App

    • Application type:

      Integrate any other application you don’t find in the gallery (Non-gallery)

    Create your own application pane with Enterpret SAML App and the non-gallery application option selected.
  6. Click Create

  7. Optional. Upload the Enterpret logo in the app’s properties.

    Enterpret SAML App properties with sign-in enabled and the application name configured.

Step 2: Configure SAML Settings

  1. In the newly created app, go to Manage → Single sign-on

    Single sign-on method selection with the SAML option.
  2. Select SAML

    SAML-based sign-on page with the Basic SAML Configuration Edit link.

Basic SAML Configuration

Enter the following values exactly:

Field

Value

Identifier (Entity ID)

urn:amazon:cognito:sp:us-east-2_kLiRrPBis

Reply URL (ACS URL)

https://enterpret-prod.auth.us-east-2.amazoncognito.com/saml2/idpresponse

Sign-on URL

Leave empty

Logout URL

Leave empty

Default RelayState

Leave empty (for now)

Basic SAML Configuration pane with the Entity ID and Reply URL fields populated.

⚠️ IDP-initiated login requires RelayState, which is covered later.


Configure attributes and claims

Azure AD does not always send email by default in the way Enterpret expects. Correct claim mapping is critical.


Step 1: Verify the Correct Email Source Attribute

Before adding claims, verify where Azure stores user email.

  1. Go to Microsoft Entra ID → Users

  2. Select a sample user

  3. Check:

    • User Principal Name (UPN)

    • Mail

Choose one:

  • If UPN contains the same email address the user uses for Enterpret, use user.userprincipalname.

  • If Mail contains the correct email, use user.mail

👉 Confirm this with your IT admin before proceeding.

SAML Attributes & Claims section showing the email claim mapped to user.mail.

Step 2: Add Email Claim

  1. In the app, go to Attributes & Claims

  2. Click Edit

  3. Click Add new claim

  4. Enter:

    • Name: email

    • Source: Attribute

    • Source attribute:

      user.userprincipalname or user.mail (based on verification)

    • Namespace: Leave empty

    Manage claim form with the claim named email and Source attribute set to user.mail.
  5. Click Save


Why the Email Claim Matters

Enterpret reads the email claim to match the user in the selected workspace. It also checks the workspace’s configured SSO provider.

If the email:

  • Is missing

  • Is mapped incorrectly

  • Does not match Enterpret

➡️ Login will fail even if Azure authentication succeeds.


Step 3: Copy Azure Metadata URL

  1. Go to Single sign-on → SAML Certificates

  2. Copy the App Federation Metadata URL

    SAML Certificates section with the App Federation Metadata URL and its copy control.

You’ll use this in Enterpret.


Step 4: Configure SSO in Enterpret

  1. Log in to Enterpret

  2. Open Settings → SSO and SCIM. Older navigation may show Access Settings → SSO & SCIM Settings, as in the screenshots.

    Enterpret account menu with Settings selected.
    Enterpret SSO & SCIM Settings page with the Configure SSO button.
  3. Click Set up SSO (Configure in the older screenshot).

  4. Select SAML, then Proceed.

    Configure SSO dialog with SAML selected and the Proceed button.
  5. Choose Metadata URL and paste the App Federation Metadata URL. Alternatively, choose Metadata XML to paste XML or upload a UTF-8 XML file of 128 KiB or less.

    Configure SSO dialog with a Metadata URI field and Submit button.
  6. Click Save (Submit in the older screenshot).

    Enterpret SSO settings showing Configured status and an SSO Configured confirmation.

After the request succeeds, confirm the Configured status and test sign-in.


Step 5: Test SP-Initiated SSO

  1. Log out of Enterpret

  2. Go to Enterpret login page

  3. Click Sign in with SSO

    Enterpret sign-in page with the Sign in with SSO button.
  4. Enter your email and select the workspace if prompted.

    Enterpret SSO sign-in form with an email address field and Proceed button.
  5. Authenticate via Azure AD

    Microsoft sign-in page requesting an email address, phone number, or Skype account.
  6. Confirm successful login

✅ A successful test confirms that this user can complete this sign-in flow. Test other intended user types and portal access separately.


Step 6: Enable IDP-Initiated Login (Azure My Apps)

Make sure you have assigned Enterpret app to relevant users

  1. Get RelayState from Enterpret

    • Open Settings → SSO and SCIM in the workspace you are configuring.

      Enterpret account menu with Settings selected.
    • Click Copy RelayState and use that complete value for this workspace.

      Enterpret SSO settings with the Copy RelayState button.

2. Add RelayState in Azure

  1. In Azure AD, open the Enterpret app

  2. Go to Single sign-on → Basic SAML Configuration

    Azure SAML sign-on page with Edit in the Basic SAML Configuration section.
  3. Paste RelayState into Default RelayState

    Basic SAML Configuration pane with the Relay State field populated for Enterpret.
  4. Save

Users can now launch Enterpret from the Azure My Apps portal.

Microsoft My Apps dashboard with the Enterpret SAML App tile.

Troubleshooting Checklist

Before contacting support, verify:

  • The emitted email claim matches the address used for Enterpret workspace access

  • email claim exists and maps correctly

  • User is assigned to the Enterprise Application

  • SP-initiated login works

  • Metadata URL is valid

  • RelayState is configured (for IDP-initiated login)


Frequently asked questions

  1. Azure login succeeds, but Enterpret login fails. Why?

    Possible causes to check include:

    • Missing or incorrect email claim

    • Email mismatch between Azure and Enterpret

  2. SSO works from Enterpret, but not from Azure My Apps. Why?

    Check that the complete RelayState copied from this workspace is configured in the enterprise app. Also verify user assignment and the configured SAML provider.

  3. Is NameID enough for Enterpret?

    No. Enterpret explicitly reads the email claim.

  4. Can we use a different attribute instead of email?

    This setup maps the SAML attribute named email for user matching. Its value can come from the directory field that contains the intended Enterpret email address; a different output attribute name is not configurable in Enterpret.

  5. Should we use SAML or OIDC?

    • OIDC: Choose it when your identity policy permits Enterpret’s Client Secret–based OIDC setup.

    • SAML: Choose it when this protocol matches your organization’s identity-provider policy.

Need Help?

If you’re unsure about:

  • Email claim mapping

  • RelayState configuration

  • Azure SAML behavior

Contact your Enterpret team for help with SAML setup.