Troubleshoot single sign-on
Why a learner or an admin can't sign in, why metadata is refused, what an expired certificate does, and how to get people back in during a provider outage.
When Hook turns a learner or an admin away, their screen names the kind of problem in plain words and shows a reference code. It never shows the detail. The cause is on your settings page or in your provider, and this page matches the screen to it.
Check a learner before they try
Go to Settings, then Single sign-on. Once a connection exists, the Learner readiness card counts how many of your active learners can sign in today and why the rest can't. Enter an email under Check a learner to walk one person through every check without signing anyone in.

A learner with nothing assigned can still sign in. They see an empty dashboard until you assign training.
A learner can't sign in
"You're not set up as a learner yet." Hook has no learner in your organization with the email your provider sent, or the sign-in carried no email address at all. Signing in never creates a learner. Check that the person exists in Users and groups with that email; directory sync or a CSV import adds them. Check a learner on the SSO settings page walks the same steps for one address.
The email your provider sends does not match. Hook matches the email in
the sign-in against learners in your organization, and also the sign-in name
(UPN) your Microsoft Entra directory sync brings in. When that sync covers the
same tenant, Hook also recognises the person by their Entra account, whatever
address the sign-in carries. Otherwise a provider that sends a personal address,
or nothing at all, does not match. On Entra, Hook uses user.mail, or the UPN
when user.mail is empty; check that this address is the one the learner is
enrolled under. On Okta and Google, set the NameID format to email.
"Your access to training is turned off." The learner was deactivated or removed in Hook, or their earlier sign-in was revoked when a connection was removed. Access ends on the next request, even if your provider still lets them in.
"Your account needs your administrator's attention." Hook could not tell which learner the sign-in belongs to, so it does not guess. There are three causes:
- More than one learner answers to the address your provider sent, usually because it is one person's email and another person's directory sign-in name. Tidy the addresses in your directory; Check a learner shows which learners share one.
- Your Microsoft Entra directory sync matches the person to a different learner than their email does. Fix the email or the sync so both name the same learner.
- The Entra user signing in is not the one this learner first signed in as, for example because a mailbox was given to someone new, or an account was deleted and created again. Hook refuses it so the new person cannot open the previous person's training.
Check a learner cannot see the last two causes. Send support the reference code from the learner's screen; see What to send support.
"We couldn't sign you in." The connection is turned off or still in setup, your provider rejected the sign-in, or your organization isn't fully migrated. A disabled connection refuses every sign-in, and one that was never opened for testing does too. A wrong Entity ID or ACS URL in the provider's application, or a user not assigned to it, fails before Hook is involved; your provider's own sign-in logs show this. Single sign-on is available with full migration; if your organization isn't migrated, Hook support migrates it, and learners keep using their email links until then.
An admin can't sign in with SSO
Admins see their own error screens, worded for admins, with a reference code for support and a Back to sign in button. Each matches a cause:
"This sign-in isn't linked to a Hook admin account." Your provider signed the person in, but Hook has no admin with that email in the organization the connection belongs to. Signing in through your provider never creates or promotes an admin, so invite them in Hook or check their role. This also appears when someone signs in through another organization's connection: an MSP's staff sign in through the MSP's own connection, never a client's, and a client's admins never through their MSP's.
"Your Hook admin access is turned off." The admin was removed in Hook, or their linked SSO sign-in was revoked on the settings page or released when the connection was removed. A removed admin has to be added back in Hook. A revoked sign-in keeps that provider account turned away; the admin can sign in with a replacement account in your provider, except on Microsoft Entra, where the connection has to be removed and set up again. After a connection was removed, the admin signs in through the new connection and Hook links them again.
"Your admin sign-in needs attention." Hook couldn't confirm which admin the sign-in belongs to, so it doesn't guess. The usual causes:
- The email your provider sent isn't the admin's Hook email, or it changed since their last sign-in. Admins are matched by their Hook email address only, so fix the address your provider sends, or the admin's email in Hook.
- The sign-in carried no email address at all. Add the email claim to the SAML application.
- The admin already has a linked sign-in from a different account in your provider, for example after their account was recreated or the NameID format changed. Revoke the old linked sign-in on the Single sign-on settings page, and they can sign in with the new one.
- On Entra, the account signing in is not the one this admin first signed in as. Hook refuses it so a reassigned mailbox can't open someone else's admin account. Revoking doesn't change this; remove the connection and set it up again.
"We couldn't sign you in." The connection is turned off or still in testing, your organization isn't fully migrated, or something failed during sign-in. Admin sign-in works only on an active connection. Back to sign in returns to the single sign-on step so the admin can try again. If it keeps happening, send support the reference code.
If the person typed one address on the login page and signed in at your provider as someone else, Hook judges the account your provider signed in, not the typed address.
An admin is locked out by Require SSO for admins
With Require SSO for admins on, a code or password is refused and the login page offers single sign-on only. If your provider is down, or an admin isn't assigned to the application, there are three ways back in:
- Turn the requirement off. Anyone who manages your single sign-on settings can do it, including your MSP's admins. Codes and passwords work again within seconds.
- Ask support for recovery access. Hook support can suspend the requirement for a bounded window that ends on its own.
- Fix the assignment. Assign the admin to the SAML application in your provider, then have them sign in through SSO.
Require SSO for admins is unavailable
Turning it on needs a fresh single sign-on through this connection in the browser you are using. Click Sign in with SSO now on the settings page, sign in at your provider, and turn it on when you are back. The connection must also be active.
Only your organization's own admins can turn it on. If you manage the organization from an MSP, or you signed in with a code or password, the switch stays unavailable to you, though you can still turn it off. See Require SSO for admins.
Hook refuses the metadata URL
Metadata URLs must be public HTTPS addresses. Hook refuses plain HTTP, addresses with a username or password in them, and anything that resolves to a private network, because Hook itself fetches the metadata. If your provider only publishes metadata on an internal address, download it and paste the contents instead.
The certificate badge is amber or red
Your provider's signing certificate is within 30 days of expiry (amber), within a week or already expired (red). Once it expires, every sign-in fails.
For providers connected by metadata URL, rotate the certificate at the provider, then use Update metadata with the same URL. Until you do, sign-ins are checked against the old certificate and fail. For Google Workspace or pasted metadata, download fresh metadata and use Update metadata. See Manage your SSO connection.
Single sign-on is required and the provider is down
Nobody can open their training until the provider is back, because emailed links route into the provider too. If your admins are locked out as well, see An admin is locked out by Require SSO for admins. Two ways out for learners:
- Switch the mode to available. Emailed links work again immediately, for emails already sent as well as new ones. Switch back to required when the provider recovers.
- Ask support for recovery access. Hook support can suspend the requirement for a bounded window that ends on its own, which is useful when you would rather not touch the configuration during an incident.
A test sign-in signed me out of Hook
The test signs in at your provider inside whichever browser opens the link, and Hook signs that session out again when it finishes, which takes your admin session with it in the same browser. Sign back in as an admin, copy the test link, and open it in a private window or another browser.
The test says there was no email address
Your provider answered, but with no address in it at all, so Hook could not
match any learner and the test does not count. On Entra this means neither
user.mail nor the UPN arrived, usually because the name claim was removed or
renamed under Attributes & Claims. Add an attribute that carries the user's email address
to the SAML application, then run the test again.
The test did not complete
Hook got an answer, but couldn't tie it to this connection. Usually the metadata in Hook comes from a different application than the one you signed in through, for example after you rebuilt the application in your provider. Test again through the application whose metadata you gave Hook. If you've moved to a new application, see Switch to a different provider. The same result appears if your organization isn't fully migrated.
The "required" option is unavailable
Required needs proof that the connection works: a passed test sign-in, or a learner signing in through it. Run a test sign-in in a private window. Once it passes, the option opens, and choosing it also activates the connection.
What to send support
Email support@hooksecurity.co with your organization name, the connection name, which provider you use, the email of the learner or admin who could not sign in, and the reference code from their screen. If your settings page shows a failed check, include the wording of the notice. For provider-side errors, a screenshot of the provider's sign-in log entry is the fastest way to a fix.
Related
Set up single sign-on for learners
Provider-by-provider setup and the test sign-in.
Set up single sign-on for admins
How admins sign in through your provider, and Require SSO for admins.
Manage your SSO connection
Health, certificates, replacing metadata, modes, and recovery access.
Troubleshooting
Index of fixes across sign-in, campaigns, training, sync, and reports.