Entra ID SSO
How to set up Single Sign-On (SSO) so users can log in to Herd with their Microsoft Entra ID (Azure AD) credentials.
Microsoft Entra ID (Azure AD) SSO login and architecture overview
This section sets up Single Sign-On (SSO) so users can log in to Herd with their Microsoft Entra ID (Azure AD) credentials, the same identity they use at work. Authenticating through Microsoft Entra ID means fewer passwords for users to manage, and access control stays with your central identity provider.
The steps cover creating the app registration in Microsoft Entra ID, configuring tokens and permissions, and entering those settings in Herd. Once configured, users sign in through Entra ID, and you control who can access Herd from there, including onboarding, offboarding and auditing accounts.
Herd handles the connection between Microsoft Entra ID and Herd for you. You do not need to look at or manage usernames for single sign-on users.
What you'll need
Admin access to your Microsoft Entra ID (Azure AD) tenant
A way to share the app registration's Application (client) ID, Directory (tenant) ID and client secret Value with Herd support securely. You do not need access to any AWS account.
About 20 minutes
Step 1: Create an app registration for SSO
Note: This is a separate app registration from the User Sync app. SSO requires different settings.
Go to Azure Portal
Navigate to Microsoft Entra ID (Azure AD) > App registrations
Click + New registration
Fill in:
Name:
Herd SSO(or any name you prefer)Supported account types: Select "Accounts in this organizational directory only"
Redirect URI:
Platform: Web
URL:
https://your-cognito-domain.auth.<region>.amazoncognito.com/oauth2/idpresponseReplace
<region>with the AWS region of your Herd deployment's Cognito user pool. This is not alwaysus-west-2, so copy the exact Cognito domain from your Herd contact.
Click Register
Step 2: Note your IDs
Copy these values from the Overview page:
Application (client) ID
Overview page
Directory (tenant) ID
Overview page
Step 3: Create a client secret
Go to Certificates & secrets
Click + New client secret
Add a description (e.g., "Herd SSO")
Choose an expiration (recommended: 24 months)
Click Add
Copy the secret Value immediately. You won't be able to see it again.
Common mistake: Copy the Value column, not the Secret ID column. Using the Secret ID will cause authentication to fail.
Step 4: Configure token claims
Microsoft Entra ID (Azure AD) needs to put the user's email in the token and mark it as verified:
Go to Token configuration
Click + Add optional claim
Select ID token type
Check these claims:
emailxms_edov
Click Add
Herd signs people in by email only when Entra marks it verified (xms_edov) and the address is on one of your organization's email domains.
Step 5: Configure API permissions
Go to API permissions
Click + Add a permission
Select Microsoft Graph
Select Delegated permissions
Add these permissions:
openidprofileemail
Click Add permissions
Click Grant admin consent for [Your Organization]
Share your credentials with Herd support, and we'll complete the configuration
To control who can sign in, set Assignment required? to Yes under Enterprise applications → your Herd app → Properties and assign the people and groups who should have access.
SSO Troubleshooting
Error: "Invalid client secret provided"
Cause: You copied the wrong value when creating the client secret.
Fix:
Go to Azure AD → App Registrations → your SSO app → Certificates & secrets
Create a new client secret
Copy the Value column (NOT the "Secret ID")
Send the new secret Value to Herd support to update your connection, or select Reconfigure on the Single sign-on card in Settings → General → Access → Sign-in to enter it yourself. Herd tests the new secret before it replaces the old one. After a passing test, select Turn on SSO.
Error: "Access Token does not have required scopes"
This error appears in backend logs when the Cognito access token doesn't have the scopes needed to call Cognito's GetUser API.
Cause: This is expected for federated (SSO) users. The system automatically falls back to extracting email from the ID token.
Fix: No action needed if authentication succeeds. If it fails:
Verify Entra releases a verified email (the
emailandxms_edovoptional claims, Step 4)Run the test again in Settings → General → Access → Sign-in
Error: User not found / Cannot create user
Cause: The user doesn't exist in Herd and couldn't be auto-created.
Fix:
Run Azure AD User Sync first to import users
Or make sure Entra releases a verified email (the
emailandxms_edovclaims) on one of your organization's email domains
Error: "Token does not belong to requested organization"
Cause: Token issuer mismatch during token refresh.
Fix:
Clear browser storage and cookies
Log out completely
Log in again
SSO login not redirecting to Microsoft Entra ID
Cause: Single sign-on is not set up or not turned on for your organization.
Fix:
Open Settings → General → Access → Sign-in and confirm SSO is turned on after a passing test in the Single sign-on card
If it still does not redirect, contact Herd support
Last updated