Microsoft Entra ID (Azure AD) + Enterpret: SAML SSO setup
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
User opens the Enterpret login page
Clicks Sign in with SSO
Redirected to Azure AD
Authenticates
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
Create a non-gallery Enterprise Application in Azure
Configure SAML settings
Configure email attribute claims
Copy Metadata URL
Configure SSO in Enterpret
Test SP-initiated login
Enable IDP-initiated login
Step 1: Create an Enterprise Application in Azure AD
Log in to the Azure Portal
Navigate to Microsoft Entra ID → Enterprise Applications
Click New application
Click Create your own application
Enter:
Name:
Enterpret SAML AppApplication type:
Integrate any other application you don’t find in the gallery (Non-gallery)
Click Create
Optional. Upload the Enterpret logo in the app’s properties.
Step 2: Configure SAML Settings
In the newly created app, go to Manage → Single sign-on
Select SAML
Basic SAML Configuration
Enter the following values exactly:
Field | Value |
Identifier (Entity ID) |
|
Reply URL (ACS URL) |
|
Sign-on URL | Leave empty |
Logout URL | Leave empty |
Default RelayState | Leave empty (for now) |
⚠️ 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.
Go to Microsoft Entra ID → Users
Select a sample user
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.
Step 2: Add Email Claim
In the app, go to Attributes & Claims
Click Edit
Click Add new claim
Enter:
Name:
emailSource: Attribute
Source attribute:
user.userprincipalnameoruser.mail(based on verification)Namespace: Leave empty
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
Go to Single sign-on → SAML Certificates
Copy the App Federation Metadata URL
You’ll use this in Enterpret.
Step 4: Configure SSO in Enterpret
Log in to Enterpret
Open Settings → SSO and SCIM. Older navigation may show Access Settings → SSO & SCIM Settings, as in the screenshots.
Click Set up SSO (Configure in the older screenshot).
Select SAML, then Proceed.
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.
Click Save (Submit in the older screenshot).
After the request succeeds, confirm the Configured status and test sign-in.
Step 5: Test SP-Initiated SSO
Log out of Enterpret
Go to Enterpret login page
Click Sign in with SSO
Enter your email and select the workspace if prompted.
Authenticate via Azure AD
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
Get RelayState from Enterpret
Open Settings → SSO and SCIM in the workspace you are configuring.
Click Copy RelayState and use that complete value for this workspace.
2. Add RelayState in Azure
In Azure AD, open the Enterpret app
Go to Single sign-on → Basic SAML Configuration
Paste RelayState into Default RelayState
Save
Users can now launch Enterpret from the Azure My Apps portal.
Troubleshooting Checklist
Before contacting support, verify:
The emitted email claim matches the address used for Enterpret workspace access
emailclaim exists and maps correctlyUser is assigned to the Enterprise Application
SP-initiated login works
Metadata URL is valid
RelayState is configured (for IDP-initiated login)
Frequently asked questions
Azure login succeeds, but Enterpret login fails. Why?
Possible causes to check include:
Missing or incorrect email claim
Email mismatch between Azure and Enterpret
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.
Is NameID enough for Enterpret?
No. Enterpret explicitly reads the email claim.
Can we use a different attribute instead of email?
This setup maps the SAML attribute named
emailfor 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.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.