Experimental. Single sign-on is implemented and tested against Microsoft Entra ID, but not against every tenant configuration Entra allows. Pilot it with one account before rolling it out, and keep a password or passkey that works — never make SSO the only way into the site. The SSO overview explains the module itself; this page is the setup.
Before you start
- ITX UserOps Premium active, and the site served over HTTPS — identity providers will not redirect to plain HTTP.
- An Entra account that can create app registrations (Application Developer role or better).
- Ten minutes. Nothing here requires a Global Administrator unless your organisation requires admin consent for new apps.
Open ITX UserOps → Integrations → SSO and keep it open in one tab; the Entra admin centre goes in another. The Integrations screen shows the exact callback URL for your site — it has this shape:
https://your-site.example/wp-login.php?action=itxuo_sso_callback
Copy yours from the screen rather than building it by hand.
1. Register the application
In the Entra admin centre, go to Identity → Applications → App registrations → New registration.
- Name — anything your future self will recognise; the site's own name is the obvious choice. Users may see it on the consent prompt.
- Supported account types — "Accounts in this organizational directory only" (single tenant). This is not a style preference; see the warning below.
- Redirect URI — platform Web, value: the callback URL from the Integrations screen, exactly, including the query string.
Register it.
The plugin refuses multi-tenant configurations, on purpose. Entra's common, organizations and consumers endpoints accept a sign-in from *any* tenant — and Entra does not verify the email attribute a tenant admin writes for their own users. A multi-tenant app would let an attacker create a free tenant, set a user's email to your administrator's address, and sign in here as them. The plugin therefore treats an unpinned tenant as *not configured*: the sign-in button simply will not appear until the tenant field names one directory.
2. Copy the two IDs
On the registration's Overview page, copy:
- Application (client) ID
- Directory (tenant) ID
Both are GUIDs. The tenant field also accepts a verified domain (yourcompany.com) — either pins the app to your directory.
3. Create a client secret
Certificates & secrets → Client secrets → New client secret.
- Pick an expiry. Entra's maximum is 24 months.
- Copy the Value column immediately — it is shown once, at creation. The Secret ID column is not the secret; copying the wrong column is the single most common mistake in this whole process.
?> Put the expiry date in a calendar now. When the secret expires, sign-in with Microsoft stops with AADSTS7000215 and nothing in WordPress will have changed. The plugin stores the secret encrypted at rest, but it cannot renew it for you.
No API permissions need adding: the sign-in uses the OIDC openid email profile scopes, which the default registration already carries. If your organisation gates new apps behind admin consent, grant it from API permissions → Grant admin consent.
4. Configure the plugin
Back on ITX UserOps → Integrations → SSO:
- Tick the experimental acceptance — the checkbox is the module's on-switch and it is deliberate friction.
- Under Microsoft Entra ID: paste the Application (client) ID, the Directory (tenant) ID, and the secret value.
- Enable "Sign in with Microsoft" and Save all.
5. Decide who gets an account
An Entra sign-in for an email that already has a WordPress account just signs that account in. For unknown emails, just-in-time provisioning decides:
- Domain → role mapping (recommended):
yourcompany.com → editorcreates accounts only for your domain, with the role you chose. - Open provisioning (
jit_open): anybody your tenant authenticates gets an account. With a pinned single tenant this is your staff — but mapping is still the explicit, auditable choice.
Disabled accounts stay disabled and pending accounts stay pending — an identity provider sign-in does not bypass the plugin's gates.
6. Pilot with one account
In a private window, open your login page and use Sign in with Microsoft with one ordinary account — not your main administrator. Then check ITX UserOps → Activity Log: the sign-in is recorded with the provider named, and a JIT creation is its own entry.
Only widen the rollout once that one account signs in, lands with the right role, and appears in the log.
When it does not work
| Symptom | Cause |
|---|---|
| No "Sign in with Microsoft" button | A field is empty, the experimental box is unticked, or the tenant is common/organizations/consumers — the plugin counts an unpinned tenant as not configured |
AADSTS50011 | The redirect URI registered in Entra does not exactly match the callback URL — compare character by character, including https:// and the query string |
AADSTS7000215 | Invalid or expired client secret — create a new one and re-paste the Value |
AADSTS700016 | Application not found in the directory — the client ID and tenant ID are from different registrations, or the tenant field points at the wrong directory |
| Signs in, but as a new account rather than the existing one | The Entra account's email does not match the WordPress account's email exactly |
Locked out entirely? Getting back in — SSO respects the recovery paths, and a password or passkey you kept working is the way back.
Also worth reading
- Single sign-on — what the module does and does not do
- SSO with Google — the same setup on the other provider
- Identifier-first login — one login URL that routes mapped domains to Entra automatically
- Directory sync — role and group synchronisation beyond domain mapping