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, see Okta SSO. For Auth0 or another OIDC-compliant provider, see Generic OIDC SSO.SSO Configuration and SCIM are Enterprise plan features. The Free plan hides both screens in Platform Settings. Plans & Billing lists them under Enterprise.
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
- Verified-domain sign-in: Saving Microsoft Entra ID sends members on a verified domain through Microsoft for this organization, with Enforce SSO off or on
- Enforce SSO: Turning on Enforce SSO also sends addresses on the verified domains that have no active membership in any organization to Microsoft at the email step. Guests outside the verified domains sign in as before.
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
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
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. If they do not, click Grant admin consent for [Your Organization] and confirm.
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: Enforce SSO (optional)
Saving the Microsoft Entra ID connection (Part 2) takes effect immediately, including while Enforce SSO is off. Members whose email is on a verified domain sign in to this organization through Microsoft. Password sign-in and magic link are not available for this organization for those members. A member who is not in the IdP is still sent to Microsoft, and that is the only way into this organization. Sign-in to their other organizations is unchanged. Membership in those organizations decides. Break the Glass accounts are unaffected. They sign in with password only (they skip SSO and magic link). Turning on Enforce SSO also sends addresses on the verified domains that have no active membership in any organization to Microsoft at the email step. Guests outside the verified domains sign in as before.- Open Platform settings → SSO Configuration
- Toggle Enforce SSO to ON
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)
- Keep an Owner on the Break the Glass list for this organization only, with an email domain that matches a verified domain exactly (a subdomain or a parent domain does not count), before you depend on the IdP
- Verify all email domains your organization uses, including each subdomain your members use. A subdomain of a verified domain needs its own verification and is treated as outside it
- 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
- Okta SSO — Configure SSO with Okta on the Generic OIDC connection
- Generic OIDC SSO — Configure SSO with Auth0 or other OIDC 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