docs/sources/administration/data-source-management/teamlbac/configure-teamlbac-for-prometheus/index.md
LBAC for data sources is available on Grafana Cloud using a new Prometheus data source with basic authentication configured. A new data source can be created as described in LBAC Configuration for New Prometheus Data Source.
To be able to use LBAC for Prometheus data sources, you need to enable the feature toggle teamHttpHeadersMimir on your Grafana instance. Go to the feature toggles page in setting to enable the feature.
LBAC for data sources is available in private preview on Grafana Cloud for Prometheus created with basic authentication. Prometheus data sources for LBAC for data sources can only be created, provisioning is currently not available.
You cannot configure LBAC rules for Grafana-provisioned data sources from the UI. We recommend that you replicate the setting of the provisioned data source in a new data source as described in LBAC Configuration for New Prometheus Data Source and then add the LBAC configuration to the new data source.
We recommend that you remove all permissions for roles and teams that are not required to access the data source. This will help to ensure that only the required teams have access to the data source. The recommended permissions are Admin permission and only add the teams Query permissions that you want to add LBAC for data sources rules for.
metrics:read permissions.labels rules.userID as the username. Use the generated CAP token as the password.For more information on how to setup LBAC for data sources rules for a Prometheus data source, refer to Create LBAC for data sources rules for the Prometheus data source.
LBAC for data sources is available in Grafana Enterprise for Prometheus connected to GEM created with basic authentication.
You cannot configure LBAC rules for Grafana-provisioned data sources from the UI. Alternatively, you can replicate the setting of the provisioned data source in a new data source as described in LBAC Configuration for new Prometheus data source and then add the LBAC configuration to the new data source.
To be able to use LBAC for Prometheus data sources, you need to enable the feature toggle teamHttpHeadersMimir on your Grafana instance. Contact support to enable the feature toggle for you.
We recommend that you remove all permissions for roles and teams that are not required to access the data source. This will help to ensure that only the required teams have access to the data source. The recommended permissions are Admin permission and only add the teams Query permissions that you want to add LBAC for data sources rules for.
uid of the tenant to be used as the username for the basic authenticationmetrics:read permissions.labels rules.token to be used as password for authentication.uid as the username. Use the generated token as the password.For more information on how to setup LBAC for data sources rules for a Prometheus data source, refer to Create LBAC for data sources rules for the Prometheus data source.