RBAC for app plugins

Note

Available in Grafana Enterprise and Grafana Cloud.

RBAC can be used to manage access to app plugins. Each app plugin grants the basic Viewer, Editor and Admin organization roles a default set of plugin permissions. You can use RBAC to restrict which app plugins a basic organization role has access to. Some app plugins have fine-grained RBAC support, which allows you to grant additional access to these app plugins to teams and users regardless of their basic organization roles.

Restricting access to app plugins

By default, Viewers, Editors and Admins have access to all App Plugins that their organization role allows them to access. To change this default behavior and prevent a basic organization role from accessing an App plugin, you must update the basic role’s permissions. See an example of preventing Viewers from accessing an app plugin to learn more. To grant access to a limited set of app plugins, you will need plugin IDs. You can find them in plugin.json files or in the URL when you open the app plugin in the Grafana Cloud UI.

Note that unless an app plugin has fine-grained RBAC support, it is not possible to grant access to this app plugin for a user whose organization role does not have access to that app plugin.

Fine-grained access to app plugins

Plugins with fine-grained RBAC support allow you to manage access to plugin features at a more granular level. For instance, you can grant admin access to an app plugin to a user with Viewer organization role. Or restrict the Editor organization role from being able to edit plugin resources.

For a centralized reference of all Grafana Cloud app plugin roles, default permissions by basic role, and available plugin roles, refer to Grafana Cloud app plugin role definitions. Some plugins also have dedicated RBAC documentation with additional context and use cases, linked in the table below.

The following table lists app plugins that have fine-grained RBAC support:

App plugin App plugin ID App plugin permission documentation
Access policies grafana-auth-app Plugin role definitions
Adaptive Logs grafana-adaptivelogs-app Plugin role definitions
Adaptive Metrics grafana-adaptive-metrics-app Plugin role definitions
Adaptive Traces grafana-adaptivetraces-app Plugin role definitions
Agent Observability grafana-agento11y-app Agent Observability security and access controls
Application Observability grafana-app-observability-app Plugin role definitions
Attributions grafana-attributions-app Plugin role definitions
Cloud Provider grafana-csp-app Cloud Provider Observability role-based access control
Cost Management and Billing grafana-cmab-app Plugin role definitions
Database Observability grafana-dbo11y-app Plugin role definitions
Fleet Management grafana-collector-app Role-based access control for Fleet Management
Frontend Observability grafana-kowalski-app Plugin role definitions
Grafana Assistant grafana-assistant-app Plugin role definitions
Incident grafana-incident-app Plugin role definitions
Integrations and Connections grafana-easystart-app Plugin role definitions
IRM grafana-irm-app Plugin role definitions
IRM Labels grafana-labels-app Plugin role definitions
Knowledge Graph grafana-asserts-app Plugin role definitions
Kubernetes Monitoring grafana-k8s-app Kubernetes Monitoring role-based access control
Machine Learning grafana-ml-app Plugin role definitions
OnCall grafana-oncall-app Configure RBAC for OnCall
Performance Testing (k6) k6-app Configure RBAC for k6
Private data source connect (PDC) grafana-pdc-app Plugin role definitions
Service Level Objective (SLO) grafana-slo-app Configure RBAC for SLO
Session Replay grafana-sessionreplay-app Session Replay role-based access control
Synthetic Monitoring grafana-synthetic-monitoring-app Configure RBAC for Synthetic Monitoring

Revoke fine-grained access from app plugins

To list all the permissions granted to a basic role, use the HTTP API endpoint to query for the role. Basic role UIDs are listed in RBAC role definitions list.

To remove any undesired plugin permissions from a basic role, update the basic role’s permissions.

Grant additional access to app plugins

To grant access to app plugins, you can use the predefined fixed plugin roles or create custom roles with specific plugin permissions. To learn about how to assign an RBAC role, refer to the documentation on assigning RBAC roles.