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-inAn arrangement that lets systems accept identity information from another trusted system, so an application can rely on a sign-in performed by a separate identity provider. 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 ConnectAn identity layer on top of OAuth 2.0 that lets an application sign people in with an account at another service. It adds the ID token, standard claims, and discovery to the OAuth exchange. 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 tokenIn OpenID Connect, a signed JWT from the provider, addressed to one client, saying which account authenticated, when, and in answer to which request. It reports a sign-in and is not used to call APIs.: a signed statement from Lumen Studios about who she is. The printer is the relying partyAn application that accepts and relies on a sign-in from another service, the name used in OpenID Connect and for passkeys. SAML calls the same role a service provider.. What it then does with that tokenA piece of data issued by a trusted service that a client presents as a credential, for example to call an API or to report a sign-in. Some tokens carry readable claims; others are random strings that only the issuer can interpret. 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 issuerThe party that creates and signs a token, assertion, or certificate, named in a token's iss claim. A recipient must check that the issuer is exactly the one it expected and trusts., 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.
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: emailThat 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-30917Emeka 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.
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:
| Record | Before repair | After repair |
|---|---|---|
| Account link (issuer and subject) | https://id.lumen.example, lum-8b41c07e2d to acct-30917 | Unchanged |
Mapping for first_name | family_name | given_name |
| Stored first and last name | Nwosu, Tari | Tari, Nwosu (corrected with an audit record) |
[email protected] | Unchanged | |
| Roles | Customer | Unchanged |
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.
Try it in the Lab
- Investigate the unexpected account labelCreate federated accounts through a deliberately wrong name map, show that issuer, subject and roles were never affected, repair the map and the one profile, and keep accounts separate.