--- title: "Field mappings: syntax and claims" slug: "field-mappings-syntax-and-claims" updated: 2026-07-06T08:34:56Z published: 2026-07-06T08:34:56Z canonical: "docs.lobstersoftware.com/field-mappings-syntax-and-claims" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Field mappings: syntax and claims *See also:* [SSO (Single Sign-On)](/v1/docs/en/core-sso-system-preferences) The `fieldMappings` property of "SSO System Preferences" maps identity provider claims to LDP user attributes. This reference describes the syntax. It also lists typical Azure claims. ## Syntax `fieldMappings` is a single string. The format is: `field=claim,field2=claim2&claim3` Three separators are used: | Character | Purpose | | --- | --- | | `,` (comma) | Separates one mapping from the next | | `=` (equals) | Separates the LDP attribute (left) from the source claim (right) | | `&` (ampersand) | Connects multiple source claims as a fallback chain | Each mapping defines a target LDP user attribute on the left side. On the right side, you list one source claim or a fallback chain. The first non-empty claim in the chain wins. Example: `username=email&preferred_username,displayname=name` This string defines two mappings: - For `username`, use the `email` claim. If `email` is missing, fall back to `preferred_username`. - For `displayname`, use the `name` claim. ## Common Azure (Entra ID) claims The Azure ID token and user info endpoint can return these claims: | Claim | Description | | --- | --- | | `email` | Primary e-mail address | | `preferred_username` | User principal name (UPN). Typically the user's e-mail | | `sub` | Subject. Stable opaque user identifier | | `oid` | Object ID. Globally unique user identifier in Azure AD | | `name` | Display name | | `given_name` | First name | | `family_name` | Last name | Which claims are returned depends on the **Scope** in the SSO system preferences. The `email` claim needs the `email` scope. The `name`, `given_name`, and `family_name` claims require the `profile` scope. ## Practical example: typical Azure username mapping Map the LDP `username` to the user's e-mail. Use `preferred_username` as a fallback: `username=email&preferred_username` **NOTE:** The `fieldMappings` field in the detail view is a single multi-line text field. There is no guided mapping editor. Enter the syntax directly. ## Related - [Configuring Entra SSO: step-by-step example](/configuring-azure-sso-example.md) - [How to debug SSO token claims](/debug-sso-token-claims.md)