Sign-in and SSO
This page explains how Owlie decides which identity an SSO sign-in belongs to, and what to do when it can't decide. To turn on login methods and set Allowed Domains, Require verified email and Just-in-time provisioning, see Configure sign-in. For the address people sign in with, see Sign-in email and email.
Who can sign in
Every login method, SSO included, admits only an identity that is a person, is active (Owlie Status), and has Sign-in access allowed. A person's first SSO sign-in to an existing identity grants sign-in access, as described below.
Methods that start from a typed address (password, Secure Login, magic link and password reset) look the address up among verified sign-in emails only. The Primary email that sources write is never used to sign in directly. By default, a connector's change to it also moves the person's sign-in email, under the conditions in Keep the sign-in email in step with the email. Turn off Keep sign-in email synced with the identity's email to make every such change a proposal an administrator accepts.
Linked provider accounts sign in by their ID
The first time someone signs in through a provider, Owlie links the provider account to their identity. From then on, Owlie recognizes that account by the provider's own ID for it, never by email. It keeps signing in to the same identity when the provider changes the account's address.
The address the provider sends must still be valid and within Allowed Domains. If it isn't, sign-in is refused until the address is fixed at the provider. A sign-in never changes the identity's email or sign-in email. (A provider's address never moves the sign-in email itself.) When a provider starts sending a different verified address, Owlie raises a sign-in email proposal for an administrator.
The first sign-in through a provider
A first sign-in links only when the provider verified the address and the address is within Allowed Domains. Owlie then looks for the identity the address belongs to, in this order:
- The identity whose sign-in email it is. Owlie links the provider account if that identity may sign in, and grants nothing it doesn't already have. A pending sign-in email counts only when its identity has never signed in, such as an invited administrator. Owlie then marks that address verified.
- Otherwise, the one identity whose email is this address and that has never been set up for sign-in. The identity must be active and not terminated. It must have no sign-in email, credentials or SSO links, and must never have verified an address. Owlie gives it the address as a verified sign-in email and allows sign-in. This is the only time an address written by a source takes part in sign-in, and only because the provider vouched for it.
- Otherwise, when no identity has the address, Owlie creates one if Just-in-time provisioning is on. The new identity gets the address as both its email and its verified sign-in email.
Anything else is refused, and nothing is linked or created. Once linked, the person can also use the tenant's other login methods for which they have a credential.
Unverified addresses are refused
Owlie links or creates an identity only for an address the provider verified. SAML assertions
always count as verified. For OpenID Connect providers, the provider's email_verified claim
decides.
When a Microsoft, Okta or custom provider sends no email claim, Owlie falls back to
preferred_username or upn and treats that address as unverified, whatever the provider claims.
A username can look like a colleague's address without being their mailbox. With Require
verified email on, which is the default, an unverified address is refused outright. With it off,
an unverified address can still sign in an account that is already linked, but it never links or
creates one.
When a first sign-in needs an administrator
Some refusals need a decision from you. For those, Owlie raises a high-severity alert under Alerts, such as "Okta sign-in for ana@acme.com was refused". The alert opens the one candidate identity, or the identity list filtered to the address, and it closes on its own once that provider account links.
| Why the sign-in was refused | What to do |
|---|---|
| Several identities have this email. | Set the address as the right identity's sign-in email, or fix the duplicate. |
| A terminated identity has this email. | Rehire the leaver if they are returning. Otherwise, set the address on the right identity, releasing it from the leaver first if needed. |
| The identity with this email has signed in before. | If it is them, set the address as their sign-in email. SSO works once they confirm it from the verification link. |
| A pending sign-in email change is waiting on this address. | Let the person confirm the change from the link sent there, or undo the change. |
| The address is another identity's email or secondary email. | Fix the directory data, or set the address as the sign-in email of the right identity. |
| The identity is already linked to a different account at the IdP. | Follow Remove an SSO link. |
Owlie raises no alert when the identity is blocked or disabled, when the address wasn't verified, when its domain isn't allowed, or when nothing matches and Just-in-time provisioning is off. These follow from your own settings, and the person sees a failed sign-in. Owlie also raises none when any candidate's sign-in is blocked.
There is no action that attaches a provider account to an identity by hand. An asserted address alone isn't proof that the account belongs to that person.
Remove an SSO link
When a provider deletes and recreates someone's account, the new account arrives with a new ID and the person's address. Owlie refuses it because the identity is already linked to the old account. This is also what an attempt to take over the identity looks like, so check before you act:
- Confirm with the person or your identity provider's administrator that the old account really is gone.
- Open the identity's Attributes tab. Under SSO links, check when the old link last signed in. Each link shows the provider, the address it last sent, and its last sign-in.
- Select the remove icon for that link (Remove Okta link, for example), then select Remove.
Removing a link needs identity.login.manage and signs the person out everywhere. It grants
nothing: the next sign-in through that provider links again only if the provider verified the
address and it is the person's verified sign-in email.
Choose a stable SAML NameID
For SAML, the NameID is the ID Owlie links. Configure your identity provider to send a stable
identifier that is never reused, such as Entra's object ID (user.objectid), Active Directory's
objectGUID or Okta's user ID, as an unspecified NameID. Send the email address separately, as an
email attribute. Owlie accepts only the emailAddress and unspecified NameID formats and refuses
persistent, so put the stable ID in an unspecified NameID.
An email NameID is not a stable ID:
- A rename looks like a new account. When the address changes, the next sign-in arrives with a new NameID. Owlie refuses it because the identity is linked to the old one, and raises an alert.
- A reissued address signs in as its previous holder. When your mail system gives a leaver's address to someone new, that person's sign-in arrives with the leaver's NameID. Owlie refuses it while the leaver is terminated or blocked. It also won't re-enable or unblock the leaver while their email NameID is the email or secondary email of another identity that isn't terminated. Remove that SSO link first. Owlie can't catch it when the leaver was never disabled or blocked, or when Owlie's directory doesn't know the new person's address.
Switching a live organization from an email NameID to a stable ID gives everyone a new NameID at
their next sign-in. Right after you switch, open Tenant Settings > Authentication > Login
methods > SAML 2.0 and select Reset SAML links. Each person's next sign-in then links again
through their verified sign-in email. The reset deletes every SAML link in the organization and signs
each affected person out. It needs the settings.modify permission and a recent sign-in, and it
can't merge duplicate identities.