Join our Newsletter — 33% off our NHI Course
Home› Guides› OIDC Standard Claims and Scopes Reference: Every Claim,…
Guide Authentication

OIDC Standard Claims and Scopes Reference: Every Claim, Its Meaning and Safe Use

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 14 min read
On this page

Most OpenID Connect integration bugs come from trusting a claim for something it was never designed to guarantee, such as using an email address as a user key. OpenID Connect Core defines a small, fixed set of scopes and standard claims, plus the registered claims every ID token carries, and the specification is explicit about which of them are stable, which are optional and which must never be used as identifiers. This reference lists every standard scope and claim with its type and meaning, the ID token claims a relying party must validate, the claims that are unsafe for authorisation, and the privacy rules for requesting only what you need. It is written for developers and IAM engineers integrating OIDC as a relying party or configuring an OpenID Provider. Definitions follow OpenID Connect Core 1.0 incorporating errata set 2 (15 December 2023), checked in November 2026; provider-specific claims are labelled with the provider's name.

Key takeaways

  • Key users on iss plus sub, never email. OIDC Core states that the only guaranteed unique identifier for an end-user is the combination of the iss and sub claims; email, phone_number, preferred_username and name must not be used as unique identifiers.
  • Scopes request claims; claims carry data. openid makes the request an OIDC request, and profile, email, address and phone are shorthand for fixed claim sets. Requesting a scope does not guarantee the provider returns every claim in it.
  • Validate the ID token claims every time. iss must match exactly, aud must contain your client_id, exp must be in the future and nonce must match the value you sent; check azp, acr and auth_time when they apply.
  • email_verified is a point-in-time statement by one provider. It says the provider took affirmative steps to check control of the address when it verified it, by a method that depends on the provider, so it is not proof of who owns the mailbox today.
  • Request the minimum. Each extra scope adds personal data you must protect and justify; ask for openid alone when all you need is a stable login identifier.

Scopes and claims explained

A claim is a piece of information asserted about an entity, carried as a name and value in a JSON object. A scope is an OAuth 2.0 request parameter; in OIDC, certain scope values ask the provider to release a predefined group of claims. Claims reach the relying party (RP) in two places: the ID token, a signed JWT that proves an authentication event, and the UserInfo endpoint, an OAuth-protected API that returns profile claims. OIDC Core says that when an access token is issued, the claims requested by the profile, email, address and phone scopes are returned from UserInfo; when no access token is issued (response_type=id_token), they are returned in the ID token.

The claims request parameter (Core section 5.5) lets an RP ask for individual claims for the ID token or UserInfo, marking them essential or asking for specific value or values. Providers are not required to support it, so treat it as an optimisation and check the provider's discovery document (claims_parameter_supported). For the wider difference between claims and permissions, see OAuth Claims vs Scopes; for the protocol flows themselves, see the OAuth 2.0 and OpenID Connect Guide.

Standard scopes (openid, profile, email, address, phone)

ScopeClaims requested (OIDC Core 5.4)Notes for RPs
openidNone of the profile claims; makes the request an OpenID Connect request and returns an ID token with subMust always be present; enough for "log this person in and give me a stable key"
profilename, family_name, given_name, middle_name, nickname, preferred_username, profile, picture, website, gender, birthdate, zoneinfo, locale, updated_atBroad: includes gender and birthdate, which many apps do not need
emailemail, email_verifiedUse for contact, not identity
addressaddressJSON object; providers may return only some members
phonephone_number, phone_number_verifiedUse for contact or as a recovery channel, not as a key
offline_accessNo claims; requests a refresh token for access when the user is not presentGrant only where the use case needs it and the user consents

Providers decide what to release. Google, for example, lists openid, email and profile as its supported OpenID scopes and requires the scope parameter to begin with openid. Always read scopes_supported and claims_supported from the provider's discovery document rather than assuming the full set.

Standard claims reference table

The 20 standard claims defined in OIDC Core section 5.1. All are optional for the provider to return except sub, which every ID token and UserInfo response carries.

ClaimTypeMeaningSafe use
substringIdentifier for the end-user at the issuerPrimary key, always paired with iss
namestringFull name in displayable formDisplay only
given_namestringGiven name or first name(s)Display, personalisation
family_namestringSurname(s) or last nameDisplay, personalisation
middle_namestringMiddle name(s)Display
nicknamestringCasual name, may differ from given nameDisplay
preferred_usernamestringShorthand name the user prefers; not guaranteed uniqueDisplay, never a key
profilestring (URL)URL of the user's profile pageDisplay link; treat as untrusted input
picturestring (URL)URL of a profile imageDisplay; fetch through a proxy or sanitise
websitestring (URL)User's web page or blogDisplay; treat as untrusted input
emailstringPreferred email, RFC 5322 addr-spec; not guaranteed uniqueContact, never a key
email_verifiedbooleanWhether the provider verified the addressInput to account linking decisions, with care
genderstringfemale and male defined; other values allowedRequest only with a clear purpose
birthdatestringYYYY-MM-DD; year may be 0000, or year onlyRequest only with a clear purpose
zoneinfostringIANA time zone name, such as Europe/ParisLocalisation
localestringBCP47 language tag, such as en-GBLocalisation
phone_numberstringPreferred phone number, E.164 recommendedContact, never a key
phone_number_verifiedbooleanWhether the provider verified the numberSame caution as email_verified
addressJSON objectPostal address: formatted, street_address, locality, region, postal_code, countryDelivery or billing where needed
updated_atnumberSeconds since 1970-01-01T00:00:00Z when the information last changedDecide when to refresh cached profile data

The sub value is case sensitive, at most 255 ASCII characters and never reassigned by the issuer. Under the pairwise subject type (Core section 8) a provider gives each client, or each sector identifier, a different sub so RPs cannot correlate a user across services; under public every client sees the same value. Do not assume a sub from one application will match another.

ID token registered claims

These claims make the ID token a verifiable authentication event. The first seven come from OIDC Core section 2; sid, nbf and jti appear in many deployments and are listed in the IANA JSON Web Token Claims registry with their defining specification.

ClaimStatus in OIDC CoreMeaningRP validation (Core 3.1.3.7)
issRequiredIssuer identifier, a case-sensitive https URL without query or fragmentMust exactly match the issuer from discovery or configuration
subRequiredSubject identifier, unique within the issuerStore with iss as the user key
audRequiredAudience(s); must contain the RP's client_idReject if your client_id is absent or an untrusted audience is present
expRequiredTime after which the token must not be acceptedCurrent time must be before exp; unrelated to your session length
iatRequiredTime the JWT was issuedOptionally reject tokens issued too far from now
auth_timeRequired when max_age is sent or it is requested as essential; otherwise optionalTime the user actually authenticatedRe-authenticate if older than your policy allows
nonceMust be included if sent in the requestValue passed unchanged from request to tokenMust match the value bound to the user's session; check for replay
acrOptionalAuthentication context class satisfiedIf requested via acr_values, check the value meets your policy
amrOptionalArray of authentication method identifiers, values registered in RFC 8176 such as pwd, otp, hwk, mfaInformational; prefer acr for policy
azpOptionalAuthorised party, the client the token was issued toIf present, should equal your client_id
at_hash, c_hashConditional by flowHashes binding the token to the access token or codeVerify in implicit and hybrid flows
sidDefined in OIDC Front-Channel LogoutSession identifier at the providerUse to process logout requests
nbf, jtiDefined in RFC 7519Not-before time; unique token IDHonour nbf if present; jti helps replay detection

The other validation steps in Core 3.1.3.7 matter as much as the claims: verify the signature with the issuer's published keys unless the token came directly from the token endpoint over TLS, use the algorithm you registered (RS256 by default), and generate nonce with enough entropy that it cannot be guessed. Use a maintained OIDC library rather than hand-written checks. For signature and algorithm pitfalls see the JWT Security Guide, and for failure messages see the JWT Validation Errors Troubleshooting Guide. Logout claims are covered in the OpenID Connect Logout and Session Management Guide.

Claims you should not use for authorisation

ID tokens tell the RP who logged in and how; they are not a permission system. The following claims cause real account takeover and privilege bugs when used as keys or access decisions.

Claim or patternWhy it is unsafeUse instead
email as account keyNot unique, can change or be reassigned; in some providers set by tenant administrators or usersiss + sub
preferred_username, nameNot guaranteed unique; user or admin controlledDisplay only
email_verified=true to merge accounts automaticallyMeans the provider checked the address once, by its own method; trust differs by providerLink only from providers you trust for that domain, with re-authentication to the existing account
Email domain to grant tenant or admin accessAny provider that lets a user set an arbitrary address can impersonate the domainA provider-specific organisation claim, validated (for example Google's hd, Microsoft Entra tid)
sub without issTwo issuers can issue the same subComposite key of both
ID token sent to an API as a bearer tokenAudience is the client, not the APIAn access token issued for that API

Provider guidance is consistent with the specification. Microsoft's claims validation guidance (Microsoft Entra) says never to use email, preferred_username or unique_name to decide access because they are not unique and can be controlled by tenant administrators or sometimes users, warns that upn often changes, and recommends the immutable tid and oid together as the key. Google's documentation (Google Identity) says sub is never reused or changed, tells developers not to use email as a unique identifier, and requires the hd claim in the ID token to be checked when restricting access to a Workspace domain, noting that the hd request parameter only adjusts the sign-in screen. For linking social and enterprise logins safely, see the Social Login and Account Linking Security Guide.

Authorisation data belongs in access tokens or your own policy store. Claims such as roles, groups and entitlements (registered via RFC 7643 and RFC 9068) and scope or act (RFC 8693) are not OIDC standard claims; if you rely on them, validate them in the access token for your API, not in the ID token.

Privacy and data minimisation

Every claim you request is personal data you must store, secure and justify. Under GDPR Article 5(1)(c) personal data must be adequate, relevant and limited to what is necessary, and Article 25 requires data protection by design and by default. See the Data Minimisation guide.

  1. Start with openid only: if the app needs a login and a stable key, scope=openid is enough.
  2. Add email when you must contact the user: store email as a mutable attribute and refresh it from updated_at or UserInfo, never as a key.
  3. Avoid profile unless you use most of it: it releases birthdate and gender; use the claims parameter to ask for given_name alone where the provider supports it.
  4. Prefer pairwise subjects for consumer services so your sub values cannot be joined with another service's data.
  5. Keep ID tokens out of logs and URLs: they contain personal data and, until expiry, can be replayed. See the JWT and Session Tokens in Code and Logs Guide.
  6. Test and roll back: change requested scopes in a staging client first, confirm the provider still returns what the app needs, and keep the previous scope list in configuration so you can revert quickly.

Detection and measurement

  • Validation failures: log rejected ID tokens by reason (issuer, audience, expiry, nonce, signature); a spike in nonce or audience failures can indicate replay or token injection attempts.
  • Key integrity: count user records keyed on anything other than iss + sub; target zero.
  • Scope footprint: number of distinct scopes and claims requested per client, reviewed quarterly against what the code actually reads.
  • Linking events: alert on automatic account links driven by email, and on sub changes for an existing email address.
  • Assurance: share of privileged logins whose acr or auth_time meets policy.

Common failure patterns

  • Email as primary key: a user changes their address, or an address is reassigned, and the wrong person inherits an account.
  • Trusting email_verified from any provider: a multi-tenant provider lets a tenant set an arbitrary verified address, and the RP links it to a victim's existing account.
  • Skipping aud or nonce checks: a token issued to another client, or replayed from an earlier session, is accepted.
  • Treating exp as session length: the spec says the ID token expiry is unrelated to the RP session, so session policy must be set separately.
  • Over-scoping by default: sample code requests openid profile email address phone, and the app stores birth dates it never uses.
  • Using provider-specific claims without labelling: code written for one provider's claim breaks or becomes unsafe when another provider is added.

Framework mapping

FrameworkReferenceRelevance
NIST SP 800-53 Rev. 5IA-2, IA-8Identifying and authenticating organisational and non-organisational users via federated login
NIST SP 800-53 Rev. 5AC-3 Access EnforcementAccess decisions from validated attributes, not display claims
NIST CSF 2.0PR.AA-01, PR.AA-03, PR.AA-05Identity management, authentication and least privilege authorisation
OWASP ASVS 5.0Chapter V10 OAuth and OIDCVerification requirements for RPs and providers
GDPRArticle 5(1)(c), Article 25Data minimisation and data protection by design in scope choice

Practitioner checklist

  • Store users under a composite key of iss and sub; migrate any email-keyed records.
  • Validate iss, aud, exp, signature and nonce on every ID token with a maintained library.
  • Check azp when present and auth_time or acr when your policy requests them.
  • Request openid plus only the scopes the feature uses; review scope lists quarterly.
  • Never authorise on email, preferred_username or name; use a validated organisation claim for tenant restrictions.
  • Allow email-based account linking only from trusted providers and only after the user proves control of the existing account.
  • Label provider-specific claims in code and configuration, and read claims_supported from discovery.
  • Keep ID tokens out of logs, URLs and browser storage beyond what the flow requires.

Standards and references

Related NHI Mgmt Group resources: OAuth 2.0 and OpenID Connect Guide · OAuth Claims vs Scopes · JWT Security Guide · Social Login and Account Linking Security Guide · OpenID Connect for Identity Assurance Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.