Skip to content

Conversation

@pkalsi97
Copy link
Contributor

@pkalsi97 pkalsi97 commented Dec 2, 2025

Issue #159

Summary

This PR adds 7 new admin tools:

List roles

  1. list_all_roles – list all Grafana roles with optional delegatable filter
  2. get_role_details – fetch detailed info for a role by UID

List assignments of roles

  1. get_role_assignments – list all users/teams/service accounts assigned to a role
  2. list_user_roles – list all roles assigned to specific users
  3. list_team_roles – list all roles assigned to specific teams

Debug role assignments

  1. get_resource_permissions – list all permissions defined on a resource
  2. get_resource_description – describe available permissions for a resource type

Also Updates admin_test.go by adding new tools and README.md by adding required information regarding the tools.

Note for reviewer

Not sure how to set up integration test for these tools as these tools only work in Grafana Cloud and Enterprise, please give suggestions incase Integration test is necessary.

@ioanarm, please review this when you see fit, looking forward to valuable feedback.

@pkalsi97 pkalsi97 requested a review from a team as a code owner December 2, 2025 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant