# 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.

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

Version

Tenant-scoped Identity Providers require FusionAuth `1.62.0` or later.

Every Identity Provider is either global or tenant-scoped. A tenant-scoped Identity Provider works only in authentication workflows for the Identity Provider's Tenant. Use a tenant-scoped Identity Provider to offer an Identity Provider configuration only to the users of one Tenant. A global Identity Provider works in every Tenant. Every Identity Provider created before FusionAuth `1.62.0` is global.

## Choose a Scope

You choose the scope when you create the Identity Provider. You can't change the scope later.

*   In the Admin UI, select a Tenant on the Add Identity Provider page to create a tenant-scoped Identity Provider. Select `Global identity provider` to create a global Identity Provider.
*   With the API, set **`identityProvider.tenantId`** to a Tenant Id to create a tenant-scoped Identity Provider. Leave out **`identityProvider.tenantId`** to create a global Identity Provider.

## Global Identity Providers and Tenant-Scoped API Keys

A tenant-scoped API key can change only the objects in the API key's Tenant. A global Identity Provider spans every Tenant, so a tenant-scoped API key can't change a global Identity Provider through the [Identity Providers API](https://fusionauth.io/docs/apis/identity-providers.md). A tenant-scoped API key can manage Identity Provider links, because each link belongs to a user in one Tenant.

## Link Limits

An Identity Provider can limit the number of links that each user in a Tenant can have to the Identity Provider. Links to other Identity Providers don't count toward the limit. Every Identity Provider type except HYPR has a Tenants tab for link limits.

On a global Identity Provider, the Tenants tab starts empty. To set a limit for a Tenant, click Add tenant configuration , turn on **Limit links per user**, and set **Maximum link count**. A global Identity Provider without a configuration for a Tenant still works in the Tenant, with no link limit. On a tenant-scoped Identity Provider, the tab lists only the Identity Provider's Tenant.

The following Google Identity Provider limits each user in the [Default tenant](https://fusionauth.io/docs/concepts/plans-and-limits/limitations.md#default-configuration) to two links:

![The Tenants tab of a Google Identity Provider, with a limit of two links for each user in the Default tenant.](https://fusionauth.io/img/docs/screenshots/idp-google-tenants.png)

When a user reaches the limit, FusionAuth rejects a new link. The [Link API](https://fusionauth.io/docs/apis/identity-providers/links.md) returns a `400` with the `[tooManyLinks]userId` error code, including for a request that completes a pending link. A pending link on the hosted login pages shows an error that the user reached the link limit.

To set link limits through the API, use **`identityProvider.tenantConfiguration`**. For more information, see the [Identity Providers API](https://fusionauth.io/docs/apis/identity-providers.md).

Related

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

[APIs Create a Tenant API API documentation for the FusionAuth Create a Tenant API. tenantmulti-tenant](https://fusionauth.io/docs/apis/tenants/create-a-tenant.md)

[APIs Delete a Tenant API API documentation for the FusionAuth Delete a Tenant API. tenantmulti-tenant](https://fusionauth.io/docs/apis/tenants/delete-a-tenant.md)

[APIs Tenants API Learn about the APIs for creating, retrieving, updating and deleting tenants. tenantmulti-tenant](https://fusionauth.io/docs/apis/tenants.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.
- [Attribute Mappings](https://fusionauth.io/docs/authentication/identity-providers/attribute-mappings.md): Learn how to map claims from an Identity Provider response to FusionAuth user and registration fields without a lambda.
- [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.
- [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.
