Grafana · Arazzo Workflow
Grafana Assign a Custom RBAC Role to a Team
Version 1.0.0
Create a custom role with explicit permissions, resolve a team by name, and assign the role to it.
View Spec
View on GitHub
AlertingAnalyticsDashboardsLogsMetricsMonitoringObservabilityTracesVisualizationArazzoWorkflows
Provider
Workflows
assign-custom-role-to-team
Create a custom RBAC role and bind it to a team.
Creates the role with its permission list, verifies it, resolves the target team by name, sets the team's roles, and reads the assignment back.
1
createRole
createRole
Create the custom role with an explicit list of actions and scopes. Keep the permission list narrow; this is the whole reason for not handing out Admin.
2
verifyRole
getRole
Read the role back by UID to confirm the permissions Grafana actually stored, which is not always the list you sent if an action name was wrong.
3
findTeam
searchTeams
Resolve the team by name, since role assignment addresses teams by a numeric id that differs between instances.
4
assignRoleToTeam
setTeamRoles
Set the team's roles. This replaces the team's custom role assignments with the supplied list rather than appending to them, so send the full set you want the team to end up with.
5
verifyAssignment
listTeamRoles
List the team's roles to prove the binding exists. Everyone on the team now holds these permissions, and anyone who leaves the team loses them.