Connect a Microsoft Entra ID directory
Connect a Microsoft Entra ID directory to Workforce Authority through the admin console. Connecting Microsoft Entra ID allows you to manage user access to resources through your existing Microsoft Entra ID directory.
Prerequisites
Before you begin, complete the configuration steps in the Microsoft Entra ID configuration guide.
You will need these values:
-
Directory Tenant ID – Your Microsoft Entra (Azure AD) tenant ID
-
Client ID – The application (client) ID from your Microsoft Entra ID app registration.
-
Client Secret – The client secret associated with your Microsoft Entra ID application.
Add a Microsoft Entra ID directory
-
In Workforce Authority, click User Directories > Create New Directory.

-
Configure the basic AD settings.
Type Set to Microsoft Entra ID Name Enter a unique name to identify this Microsoft Entra ID connection. Domain Add one or more domains. Settings Enable the following based on your requirements: 
-
On the Settings tab, configure the following settings.
Directory Tenant ID Enter your Azure directory (tenant) ID. Client ID Enter the ID of the Entra ID application you registered. Client Secret Paste the client secret value for the registered app. User Identifier Attribute Enter the attribute used to uniquely identify users. Default: userPrincipalName
-
On the Advanced Settings tab, configure the following settings.
National Cloud Deployment Set to the regional instance of your Microsoft Entra ID directory. Options are: Timeout Set a timeout (in seconds) for requests to Microsoft Entra ID. Circuit breaker Enable to prevent repeated failed requests when Microsoft Entra ID is unavailable. 
-
On the Mappings tab, map the Microsoft Entra ID fields to local fields used in Workforce Authority.
You can customize or delete default mappings as needed. Use + Add Entry to include additional field mappings.
Microsoft Entra ID directory field Workforce Authority local field givenNameFirst Name surNameLast Name businessPhones[0]Phone 1 (Work) mobilePhonePhone 2 (Mobile) mailEmail 1 (Work) otherMails[0]Email 2 (Personal) Groups and Roles can't be mapping targets. Workforce Authority resolves them at sign-in.
-
Save your changes.
How Workforce Authority finds a user's groups
Microsoft Entra ID has no user sync, so Workforce Authority works out which Microsoft Entra ID account belongs to a user when it needs their groups.
When a user signs in with their Microsoft Entra ID password and approves the MFA prompt, Workforce Authority remembers that account. From then on, the user's groups come from it.
- The account counts only while the user keeps the username or email address Workforce Authority matched them by. While that address is gone from the user, Workforce Authority stops relying on the remembered account and looks the user up by username again.
- A later sign-in that proves a different account replaces it.
- If another user's sign-in proves the same account, the account moves to that user.
- A sign-in approved without the user's own MFA doesn't change it. That includes a sign-in a policy approves automatically, one answered with a password or a static PIN, and one approved after the MFA request expired.
- The directory that holds the account serves the user's groups even when Search Directory for Groups is off.
Until a user has such a sign-in, and for users who never sign in with their Microsoft Entra ID password, Workforce Authority looks them up by username.
- For the groups it sends to SAML and OIDC applications, Workforce Authority then tries each of the user's confirmed email addresses. If those addresses name more than one Microsoft Entra ID account, it sends no groups.
- Group policies don't try email addresses. They find the user's groups only when that username is their Microsoft Entra ID user principal name (UPN).
- Application restrictions don't try email addresses either, and differ in two ways:
- A sign-in with their Microsoft Entra ID password checks them against the account that password just proved.
- If the tenant has another directory besides Microsoft Entra ID, the built-in Workforce Authority directory included, and Search Directory for Groups is off, the other sign-ins skip Microsoft Entra ID entirely, even when the username is the user's UPN. The app portal skips it too, so it hides apps restricted to Microsoft Entra ID groups from these users.