Microsoft Entra ID Single Sign-On
Single Sign-On (SSO) allows your organization members to sign in to NeuralTrust using their corporate Microsoft credentials instead of a separate password.Using a different identity provider? For Google Workspace, see Google Workspace SSO — it has a dedicated provider with directory group sync. For Okta, Auth0, or another OIDC-compliant provider, see Generic OIDC SSO.
Benefits
- Simplified access: One less password for users to remember
- Centralized control: Manage access through your IT department
- Automatic provisioning: Combine with SCIM for seamless user management
- Enhanced security: Option to enforce SSO-only login (disable passwords)
Prerequisites
Before you begin, ensure you have:- Microsoft Entra ID (Azure AD) tenant
- Global Administrator or Application Administrator role in Azure
- Owner or Admin role in NeuralTrust
Part 1: Configure Azure Portal
Step 1: Create an App Registration
- Go to Azure Portal
- Navigate to Microsoft Entra ID → App registrations
- Click + New registration
- Enter the following:
- Name:
NeuralTrust SSO - Supported account types: Accounts in this organizational directory only
- Redirect URI: Leave empty for now
- Name:
- Click Register
Step 2: Copy Your Credentials
- On the app’s Overview page, copy:
- Application (client) ID
- Directory (tenant) ID
- Save both values securely — you’ll need them later
Step 3: Create a Client Secret
- Go to Certificates & secrets
- Click + New client secret
- Enter a description:
NeuralTrust SSO - Select expiration: 24 months (recommended)
- Click Add
Step 4: Configure Redirect URI
- Go to Authentication
- Click + Add a platform
- Select Web
- Enter Redirect URI:
- Click Configure
Step 5: Add API Permissions (Optional)
Only required if you plan to use the Manual User Sync feature.
- Go to API permissions
- Click + Add a permission
- Select Microsoft Graph → Application permissions
- Add these permissions:
User.Read.AllGroupMember.Read.AllGroup.Read.All
- Click Grant admin consent for [Your Organization]
- Verify all permissions show ✓ Granted
Part 2: Configure NeuralTrust
Step 1: Open SSO Settings
- Log in to NeuralTrust as Owner or Admin
- Open the sidebar gear → Platform settings → SSO Configuration
- Select the Microsoft Entra ID tab
Only one identity provider can be active at a time. If Generic OIDC or Google Workspace
is already configured, remove it before setting up Microsoft Entra ID.
Step 2: Enter Your Azure Credentials
- Paste your Tenant ID
- Paste your Client ID
- Paste your Client Secret
Step 3: Test the Connection
- Click Test Connection
- You should see “Connection successful”
- Click Save
Part 3: Verify Your Email Domain
Domain verification prevents unauthorized users from claiming your company’s domain and ensures only legitimate employees can use SSO.Step 1: Add Your Domain
- Open Platform settings → SSO Configuration → Domains
- Click Add Domain
- Enter your company domain (e.g.,
yourcompany.com) - Click Add
Step 2: Get the Verification Token
You’ll receive a verification token like:Step 3: Add DNS TXT Record
- Log in to your DNS provider (GoDaddy, Cloudflare, Route53, etc.)
- Add a new TXT record with:
- Save the record
Step 4: Verify
- Back in NeuralTrust, click Verify
- If verification fails, wait up to 48 hours for DNS propagation
- Once verified, status changes to ✓ Verified
DNS changes can take up to 48 hours to propagate globally. If verification fails immediately, try again later.
Part 4: Configure Role Mapping (Optional)
Role mapping allows you to automatically assign NeuralTrust roles based on Azure AD group membership. This is useful for organizations that want to manage access permissions through their existing Azure AD groups.Prerequisites for Role Mapping
Before configuring role mapping, ensure:- SSO is configured and tested
- API permissions are granted (see Step 5 in Part 1)
- You have created security groups in Azure AD
Step 1: Create Security Groups in Azure AD
- Go to Azure Portal → Groups
- Click + New group
- Create groups for your organization structure (e.g., “NeuralTrust Admins”, “NeuralTrust Members”)
- Set Group type to Security
- Click Create
Step 2: Add Users to Groups
- Go to Azure Portal → Users
- Select a user
- Go to Groups → + Add memberships
- Select the appropriate group(s)
- Click Select
Step 3: Verify API Permissions
Ensure your app registration has these Application permissions (not Delegated):- Go to Azure Portal → App registrations
- Select your NeuralTrust SSO app
- Go to API permissions
- Verify all three permissions show ✓ Granted
Step 4: Map groups to roles in Role Provisioning
Group-to-role mapping lives in one place — the Role Provisioning section — for every provider. See Role Provisioning for the full guide. In short:- Log in as Owner or Admin → Platform settings → Role Provisioning
- Turn on User provisioning & role mapping
- Set a Default Access role for users who match no group
- Choose an Enforcement mode — At sign-up only, At sign-up and login, or Automatically via SCIM
- Under Role Mapping, add a row per Azure AD group and pick its platform role:
Part 5: Enable SSO-Only Mode (Optional)
Enforcing SSO-only mode requires all users to authenticate through the IdP configured for your organization.- Open Platform settings → SSO Configuration
- Toggle Enforce SSO to ON
- Confirm the action
When enabled, members whose email domain is verified for the organization must
authenticate through the configured IdP.Exceptions:
- Break the Glass accounts sign in with password only (skip SSO and magic link).
- External-domain members (invited with an email whose domain is not among the
organization’s verified domains — e.g. a guest
@partner.com) sign in with a magic link, even when Enforce SSO is on. They cannot use the corporate IdP for that address.
User Experience
Once SSO is configured, users will see a Sign in with Microsoft button on the login page. After clicking it:- Users are redirected to Microsoft’s login page
- They enter their corporate credentials
- They’re automatically signed in to NeuralTrust
Troubleshooting
Security Best Practices
- Rotate client secrets before they expire (24 months recommended)
- Enable SSO-only mode once all users are onboarded
- Verify all email domains your organization uses
- Combine with SCIM for automatic user lifecycle management
- Monitor audit logs for suspicious login patterns
Next Steps
- Google Workspace SSO — Configure SSO with Google Workspace
- Generic OIDC SSO — Configure SSO with Okta, Auth0, or other providers
- Role Provisioning — Map groups to roles and choose enforcement
- Configure Break the Glass — Set up emergency access for IdP outages
- Manual User Sync — Import users on-demand with role mappings
- Configure SCIM Provisioning — Automate user account creation and removal
- Set Up Audit Logs — Monitor SSO-related security events