# Attribute Mappings

Learn how to map claims from an Identity Provider response to FusionAuth user and registration fields without a lambda.

> For the index of this section of the site, see [llms.txt](https://fusionauth.io/docs/llms.txt)

Available since `1.65.0`

Note

Saving an Identity Provider in Tenant Manager reapplies the values that Tenant Manager manages. By design, Tenant Manager replaces `attributeMappings` and `applicationConfiguration`. For more information, see [Tenant Manager Identity Provider Restrictions](https://fusionauth.io/docs/users/tenant-manager.md#tenant-manager-identity-provider-restrictions).

Attribute mappings copy claims from an Identity Provider response to fields on the FusionAuth user or registration. Attribute mappings are a declarative alternative to reconcile lambdas. Each attribute mapping is a key and a value. Configure attribute mappings with the [Identity Providers API](https://fusionauth.io/docs/apis/identity-providers.md) or in [Tenant Manager](https://fusionauth.io/docs/users/tenant-manager.md#attribute-mappings).

## Keys

A key names a field on the FusionAuth user or registration. A key must start with `user.` or `registration.`. For example:

*   `user.email` is the user's email address. The linking strategy can use the email address to link the user.
*   `registration.data.subscription` is custom registration data about the user's subscription.

## Values

A value names a field or claim in the Identity Provider response. The response has the same shape as the parameter of the matching reconcile lambda type.

Note

The OpenID Connect reconcile lambda has two parameters, `jwt` and `id_token`. An OpenID Connect attribute mapping value must start with one of the parameter names, to name the parameter that the value reads.

Write values in dot notation or in JSON pointer notation. To refer to a field whose name contains `.` or `/`, use JSON pointer notation. JSON pointer notation requires the following escapes:

*   Write a literal `~` as `~0`.
*   Write a literal `/` as `~1`.

For example:

*   `id_token.preferred_username` reads the `preferred_username` claim of the OpenID Connect ID token, in dot notation.
*   `/jwt/https:~1~1example.com~1favorite_color` reads the custom claim `https://example.com/favorite_color` of the OpenID Connect access token, in JSON pointer notation.
*   `assertion.attributes.email.0` reads the first email attribute value of a SAML response, in dot notation. Every SAML attribute is an array, so a single value needs an index. The value doesn't include the `samlResponse` lambda parameter name. Only OpenID Connect values include the parameter name.
*   `/assertion/attributes/email/0` reads the first email attribute value of a SAML response, in JSON pointer notation.

## Reconciliation

During reconciliation, FusionAuth reads each value from the Identity Provider response, and assigns the value to the key's field on the user or registration. Every attribute mapping is optional. When FusionAuth can't read a value or set a key, FusionAuth skips the mapping and continues reconciliation.

Reconcile lambdas and attribute mappings are mutually exclusive. An Identity Provider can't have both.

Related

[APIs Tenant Manager API Learn about the APIs for retrieving and updating Tenant Manager configuration. tenant manageridentity provider](https://fusionauth.io/docs/apis/tenant-manager.md)

[Authentication Identity Providers, Applications, and Overrides Learn how Identity Providers work with Applications, CIMD clients, and Application-specific overrides. idpidentity provider](https://fusionauth.io/docs/authentication/identity-providers/applications-and-overrides.md)

[Authentication Identity Provider Hints Learn how to send users from the hosted login pages straight to an Identity Provider with the idp\hint and login\hint parameters. idpidentity provider](https://fusionauth.io/docs/authentication/identity-providers/hints.md)

[Authentication Identity Provider Scope Learn about global and tenant-scoped Identity Providers, and how to limit the links that each user can have to an Identity Provider. idpidentity provider](https://fusionauth.io/docs/authentication/identity-providers/identity-provider-scope.md)
---

## Other pages in Identity Providers

> For the full index of this section, see [Authentication](https://fusionauth.io/docs/llms-authentication.txt).

- [Identity Providers, Applications, and Overrides](https://fusionauth.io/docs/authentication/identity-providers/applications-and-overrides.md): Learn how Identity Providers work with Applications, CIMD clients, and Application-specific overrides.
- [Add a SAML v2 with ADFS IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/adfs.md): Configure SAML v2 for Active Directory Federation Services (ADFS).
- [Add an OpenID Connect with Azure AD IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/azure-ad-oidc.md): Set up user login using Azure AD/Microsoft Entra ID as an OpenID Connect Identity Provider.
- [Add a SAML v2 with Azure AD IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/azure-ad-saml.md): Learn how to configure Azure AD (Microsoft Entra ID) as a SAML v2 Identity Provider for FusionAuth.
- [Add a OpenID Connect with Cognito IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/cognito.md): Set up user login using Cognito as an OpenID Connect Identity Provider.
- [Add a HYPR IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/hypr.md): Set up user login with HYPR using the HYPR Identity Provider.
- [Add an OpenID Connect with Okta IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/okta-oidc.md): Learn how to set up user login using Okta as an OpenID Connect Identity Provider.
- [Add a SAML v2 IdP-Initiated with Okta IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/okta-samlv2-idp-initiated.md): Configure SAML v2 IdP-Initiated SSO With Okta.
- [Add a SAML v2 with Okta IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/okta-samlv2.md): Configure SAML v2 for Okta.
- [Add a SAML v2 IdP-Initiated IdP](https://fusionauth.io/docs/authentication/identity-providers/enterprise/samlv2-idp-initiated.md): Learn how to let users log in to FusionAuth through a SAML v2 IdP-initiated Identity Provider.
- [External JWT IdP Example Usage](https://fusionauth.io/docs/authentication/identity-providers/external-jwt/example.md): Learn how to federate identity using the External JWT Identity Provider.
- [Add an External JWT IdP](https://fusionauth.io/docs/authentication/identity-providers/external-jwt.md): Learn how to configure an External JWT Identity Provider so FusionAuth can log in users with JWTs from a third-party identity provider.
- [Add an OpenID Connect with Discord IdP](https://fusionauth.io/docs/authentication/identity-providers/gaming/discord.md): Learn how to add a Login with Discord button to the FusionAuth login pages with the OpenID Connect Identity Provider.
- [Add an Epic Games IdP](https://fusionauth.io/docs/authentication/identity-providers/gaming/epic-games.md): Learn how to add an Epic Games login button to the FusionAuth login pages.
- [Add a Nintendo IdP](https://fusionauth.io/docs/authentication/identity-providers/gaming/nintendo.md): Learn how to add a Nintendo login button to the FusionAuth login pages.
- [Add a Sony PlayStation Network IdP](https://fusionauth.io/docs/authentication/identity-providers/gaming/sony.md): Learn how to add a Sony PlayStation Network login button to the FusionAuth login pages.
- [Add a Steam IdP](https://fusionauth.io/docs/authentication/identity-providers/gaming/steam.md): Learn how to add a Steam login button to the FusionAuth login pages.
- [Add a Twitch IdP](https://fusionauth.io/docs/authentication/identity-providers/gaming/twitch.md): Learn how to add a Twitch login button to the FusionAuth login pages.
- [Add an Xbox IdP](https://fusionauth.io/docs/authentication/identity-providers/gaming/xbox.md): Learn how to add an Xbox login button to the FusionAuth login pages.
- [Identity Provider Hints](https://fusionauth.io/docs/authentication/identity-providers/hints.md): Learn how to send users from the hosted login pages straight to an Identity Provider with the idp_hint and login_hint parameters.
- [Identity Provider Scope](https://fusionauth.io/docs/authentication/identity-providers/identity-provider-scope.md): Learn about global and tenant-scoped Identity Providers, and how to limit the links that each user can have to an Identity Provider.
- [Add an Identity Provider (IdP)](https://fusionauth.io/docs/authentication/identity-providers.md): Learn how to let users log in through an external identity provider such as Google or Okta.
- [Linking Strategies](https://fusionauth.io/docs/authentication/identity-providers/linking-strategies.md): Learn how FusionAuth links a user from an Identity Provider to a FusionAuth user.
- [Managed Domains](https://fusionauth.io/docs/authentication/identity-providers/managed-domains.md): Learn how managed domains connect email domains to an Identity Provider.
- [Add an OpenID Connect IdP](https://fusionauth.io/docs/authentication/identity-providers/overview-oidc.md): Learn how to let users log in to FusionAuth through an external OpenID Connect Identity Provider.
- [Add an External SAML v2 IdP](https://fusionauth.io/docs/authentication/identity-providers/overview-samlv2.md): Learn how to let users log in to FusionAuth through an external SAML v2 Identity Provider.
- [Add an Apple IdP](https://fusionauth.io/docs/authentication/identity-providers/social/apple.md): Learn how to add a Sign in with Apple button to your application.
- [Add a Facebook IdP](https://fusionauth.io/docs/authentication/identity-providers/social/facebook.md): Learn how to add a Login with Facebook button to your application.
- [Add a Github IdP](https://fusionauth.io/docs/authentication/identity-providers/social/github.md): Set up user login using Github as an OpenID Connect Identity Provider.
- [Add a Google IdP](https://fusionauth.io/docs/authentication/identity-providers/social/google.md): Learn how to add a Login with Google button to your application.
- [Add a LinkedIn IdP](https://fusionauth.io/docs/authentication/identity-providers/social/linkedin.md): Learn how to add a Sign in with LinkedIn button to your application.
- [Add a Twitter/X IdP](https://fusionauth.io/docs/authentication/identity-providers/social/twitter.md): Learn how to add a Login with Twitter/X button to your application.
