Beta

Create a tenant

A new tenant starts with its own users, OAuth settings, audit history and logs. You are its first Tenant Admin.

Federated users arrive with the wrong name

Tari Nwosu signs in to the printing site through her employer for the first time and is greeted by her family name. This lesson separates the three decisions a federated sign-in makes, which account it reaches, which profile values it copies and what the person may do, then follows the evidence to a claim mapping that ran only when accounts were created and repairs it without touching identity or authority.

The account looks like someone else

A message reaches the printing company's support queue on Thursday: "I signed in for the first time with my Lumen Studios account and the site greeted me as Hello, Nwosu. My profile says first name Nwosu, last name Tari. Have I ended up in somebody else's account?" It comes from Tari Nwosu, a photographer at Lumen Studios, a partner business whose staff sign in to printer.example with their own company accounts.

Her worry is reasonable, and it deserves a careful answer rather than a quick name fix. A wrong name could be a harmless display problem, or it could be the visible edge of something serious: a sign-in that opened another person's account. Before you correct anything, find out which.

Two more reports arrive the same afternoon, both from Lumen Studios staff, both first-time sign-ins, both with their family name in the first-name field. Meanwhile Lumen Studios people who have used the site for months see nothing wrong. That pattern is the first piece of evidence: the fault affects accounts that are new, not accounts that are signing in.

Sign-in through a partner works like this. Lumen Studios runs an OpenID Connect provider at https://id.lumen.example. When Tari chooses Sign in with Lumen Studios, the printer sends her there, she authenticates, and the printer receives an ID token: a signed statement from Lumen Studios about who she is. The printer is the relying party. What it then does with that token is three separate decisions, and each has to be checked on its own.

Trace three separate decisions

Here are the claims from the ID token the printer validated for Tari's first sign-in, taken from its sign-in log, which records the validated claims but never the token itself:

{
  "iss": "https://id.lumen.example",
  "sub": "lum-8b41c07e2d",
  "aud": "printer-web",
  "iat": 1792074121,
  "exp": 1792074421,
  "given_name": "Tari",
  "family_name": "Nwosu",
  "email": "[email protected]",
  "email_verified": true
}

Lumen Studios sent the names correctly: given_name is Tari and family_name is Nwosu. Whatever went wrong happened at the printer, in one of the three decisions it made with these claims.

Which account does this identity reach? The printer finds a local account by the pair of iss and sub. OpenID Connect Core, section 5.7, says these two claims together are the only ones a relying party can rely on as a stable identifier for the person. The sub value is unique only within its issuer, so another provider could issue the same string for a different person, which is why the issuer is part of the key. An email address is not a stable key, even when email_verified is true. A verified address proves that the provider checked the person could receive mail there at some point. People change addresses, and organizations reassign them: when someone leaves Lumen Studios, their address can later be given to a new employee. An account chosen by email could then open for the wrong person.

Which profile values are copied? This is claim mapping: a rule that says which claim fills which local field. It decides what the account looks like, not whose account it is.

What may this person do? That comes from the roles assigned to the local account, which the printer manages itself. Display claims never grant anything. A given_name that happens to read "Admin" is a name, not a role.

Each decision can fail independently. A broken account lookup is an identity incident. A broken mapping is a data quality problem. A wrong role assignment is an access incident. The friendly name on the page cannot tell you which one you have, so look at the records behind it. The printer's link table, which records which issuer and subject were joined to which local account, shows where Tari's identity went:

issuer                     subject          local_account   linked_at
https://id.lumen.example   lum-8b41c07e2d   acct-30917      2026-10-15T14:22:01Z   (Tari, created)
https://id.lumen.example   lum-5f02a91c66   acct-30902      2026-10-15T11:05:44Z   (created)
https://id.lumen.example   lum-c7d3e8b104   acct-30888      2026-10-15T10:51:19Z   (created)
https://id.lumen.example   lum-22a6f4d913   acct-21460      2026-06-02T09:13:37Z   (Emeka Adeyemi)

Tari's issuer and subject point to acct-30917, an account created at 14:22 on Thursday by this very sign-in. No other subject is linked to it, and her subject is linked to no other account. She is in her own new account. Its role assignments show the default customer role and nothing more. The identity and the authority are both right. Only the label is wrong.

Which account

Reads
iss and sub
Decided by
Link table
If it breaks
Identity incident

acct-30917, her own

Which profile values

Reads
given_name, family_name
Decided by
Claim mapping
If it breaks
Data quality problem

First name Nwosu

What she may do

Reads
Roles on acct-30917
Decided by
Role assignments
If it breaks
Access incident

Customer only

The friendly name on the page cannot tell you which one you have.

Tari's sign-in, checked as three decisions. Only the claim mapping is wrong; the link and the roles are as they should be.

Inspect the mapping that actually ran

The printer's configuration history shows one change to the Lumen Studios connection this week, at 10:40 on Thursday. Lumen Studios had asked for staff badges on printed orders to show the family name first. A teammate implemented that by editing the claim mapping instead of the badge template:

# Before (until 2026-10-15 10:40 UTC)
claim_mapping:          # applied when the account is created
  first_name: given_name
  last_name:  family_name
  email:      email

# After
claim_mapping:          # applied when the account is created
  first_name: family_name
  last_name:  given_name
  email:      email

That explains Tari's profile exactly: first name from family_name, last name from given_name. It also explains the pattern of reports, once you know when the mapping runs.

Identity systems differ here, and the difference decides which stored records the edit touched. Some apply a mapping only when they create an account, the first time someone signs in through the provider. After that the local profile belongs to the account, and later sign-ins leave it alone. Others apply the mapping on every sign-in, overwriting the stored profile each time so that it follows the provider. The comment in the configuration says this connection is the first kind, but a comment is a claim, not evidence. The audit trail settles it:

time                      operation                  outcome    subject          account
2026-10-15T10:51:19.640Z  federation.account.create  succeeded  lum-c7d3e8b104   acct-30888
2026-10-15T11:05:44.208Z  federation.account.create  succeeded  lum-5f02a91c66   acct-30902
2026-10-15T13:30:12.877Z  federation.sign_in         succeeded  lum-22a6f4d913   acct-21460  profile_updated=false
2026-10-15T14:22:01.335Z  federation.account.create  succeeded  lum-8b41c07e2d   acct-30917

Emeka Adeyemi, an existing Lumen Studios user, signed in at 13:30, after the edit, and his profile was not updated. The mapping runs only at account creation. So the damage is limited to accounts created through this provider since 10:40 Thursday: three accounts. Had the mapping run on every sign-in, the affected set would have been everyone who signed in through Lumen Studios since 10:40, including Emeka, and the repair would have looked quite different.

If the evidence had shown a wrong link instead, such as Tari's subject attached to an account that already belonged to someone else, this would be an account security incident. You would stop, preserve the records, review what was accessed through that account, and use the supported link-management process. You would not merge accounts on matching email, copy one account's subject onto another, or hand anyone broader roles to tidy things up. Linking accounts explains why email matching is unsafe for linking.

Repair the mapping and the affected profiles

The repair has two parts, and only one of them is the configuration.

First, restore the mapping: first_name from given_name, last_name from family_name. Lumen Studios' badge request is legitimate, so it goes into the badge template as a display format, where it changes how a name is printed without changing what is stored.

Second, correct the stored profiles that the bad mapping wrote. Restoring the mapping does nothing for them, because it runs only at creation and these accounts already exist. Asking the three people to sign in again would not help either. Correct exactly the three accounts created through the provider between 10:40 and the repair, and only where the stored first and last names are still the swapped values. If one of them has already fixed their own name, leave their edit alone. Make each correction through the supported profile update, so that it leaves an audit record saying who changed which field and why.

Leave everything else untouched: the link table, the role assignments and the email addresses. None of them was wrong, and changing them would turn a data fix into an identity change.

Verify identity and authority after repair

Start with a new identity. Have a test user in Lumen Studios' test directory sign in for the first time and check that the new account has the given name as first name and the family name as last name.

Then check that the three corrected accounts read correctly and that their owners still reach them. When Tari signs in again, her issuer and subject should still lead to acct-30917, now showing Tari Nwosu. When Emeka signs in, he should still reach acct-21460, his own account, not one of the new ones.

Finally, compare the records that must not have changed. Export the Lumen Studios rows of the link table and the role assignments of the affected accounts, and compare them with the same export taken before the repair. Every issuer, subject and account ID should match, and every account should hold the same roles as before. If anything there differs, the repair touched more than the mapping.

Worked example: before and after

A comparison table makes the handoff easy to check, because it shows which of the three decisions changed and which did not:

Tari's account before and after the repair
RecordBefore repairAfter repair
Account link (issuer and subject)https://id.lumen.example, lum-8b41c07e2d to acct-30917Unchanged
Mapping for first_namefamily_namegiven_name
Stored first and last nameNwosu, TariTari, Nwosu (corrected with an audit record)
Email[email protected]Unchanged
RolesCustomerUnchanged

The handoff note says the same in a form the next person on call can act on. It names the one decision at fault and the evidence that cleared the other two:

Symptom:       New Lumen Studios users saw their family name as first name (from 10:40 UTC Thursday).
At fault:      Claim mapping only. Account links and roles verified unchanged.
Cause:         Mapping edit swapped given_name and family_name to put family names first on badges.
Scope:         Mapping runs at account creation only (existing user's 13:30 sign-in: profile_updated=false).
               Affected: acct-30888, acct-30902, acct-30917.
Repair:        Mapping restored; family-name-first moved to the badge template. Three stored
               profiles corrected through the profile update, each with an audit record.
Verification:  New test user created with correct names. Corrected users and an existing user
               each reach their own account. Link table and role export identical to pre-repair.

Check your understanding

Try these questions before moving on. If an answer isn't right, use the feedback and try again.

After a mapping edit, accounts created through a partner provider since Thursday show the family name as first name, while older accounts look correct. The mapping runs only at account creation. Which stored profiles need correcting? 1 of 3

Choose one answer.

A partner user changes their email address at the provider after a name change. On their next sign-in, how should the application find their existing account? 2 of 3

Choose one answer.

A partner user's first sign-in shows a stranger's surname on their new profile, and they ask whether they are in someone else's account. Which record answers that? 3 of 3

Choose one answer.

Try it in the Lab

We value your privacy

We use cookies and similar technologies to enhance your browsing experience, and analytics to understand our traffic. By clicking "Allow all", you consent to optional analytics. Cookie Policy

Learn identity