docs/sources/setup-grafana/configure-access/configure-authentication/keycloak-multitenant/index.md
While Grafana offers a variety of authentication providers, you can only configure one provider of one type at a time. However, you can configure multiple providers of the same type with the help of Keycloak.
This guide explains how to set up multiple providers of the same type with Keycloak as an authentication provider in Grafana.
The idea is to set up multiple OIDC providers in Keycloak with different tenants and configure Grafana to use the same Keycloak instance as the authentication provider.
For Entra ID, repeat the following steps for each tenant you want to set up in Keycloak.
Registering an application in Entra ID is a one-time process. You can follow the steps in the Entra ID documentation to register your application.
Assigning the correct access to users ensures only intended users or groups have access to the application.
To authenticate with Entra ID, the Keycloak application needs a client ID and client secret.
{{< admonition type="note" >}}
Up to this point, you have created an App Registration in Entra ID, assigned users to the application, created credentials for the application, and configured the application in Keycloak. In the Keycloak Client's section, the client with ID account Home URL can be used to test the configuration. This will open a new tab where you can login into the correct Keycloak realm with the Entra ID tenant you just configured.
{{< /admonition >}}
Repeat this steps, for every Entra ID tenant you want to configure in Keycloak.
Now that the Entra ID tenants are configured in Keycloak, you can configure Grafana to use Keycloak as the authentication provider.
Refer to the Keycloak documentation to configure Grafana to use Keycloak as the authentication provider.