# # config file version # apiVersion: 1 # # list of default built-in role assignments that should be removed # removeDefaultAssignments: # # , must be one of the Organization roles (`Viewer`, `Editor`, `Admin`) or `Grafana Admin` # - builtInRole: "Grafana Admin" # # , must be one of the existing fixed roles # fixedRole: "fixed:permissions:admin" # # list of default built-in role assignments that should be added back # addDefaultAssignments: # # , must be one of the Organization roles (`Viewer`, `Editor`, `Admin`) or `Grafana Admin` # - builtInRole: "Admin" # # , must be one of the existing fixed roles # fixedRole: "fixed:reporting:admin:read" # # list of roles that should be deleted # deleteRoles: # # name of the role you want to create. Required if no uid is set # - name: "custom:reports:editor" # # uid of the role. Required if no name # uid: "customreportseditor1" # # org id. will default to Grafana's default if not specified # orgId: 1 # # force deletion revoking all grants of the role # force: true # - name: "custom:global:reports:reader" # uid: "customglobalreportsreader1" # # overwrite org id and removes a global role # global: true # force: true # # list of roles to insert/update depending on what is available in the database # roles: # # name of the role you want to create. Required # - name: "custom:users:editor" # # uid of the role. Has to be unique for all orgs. # uid: customuserseditor1 # # description of the role, informative purpose only. # description: "Role for our custom user editors" # # version of the role, Grafana will update the role when increased # version: 2 # # org id. will default to Grafana's default if not specified # orgId: 1 # # list of the permissions granted by this role # permissions: # # action allowed # - action: "users:read" # # scope it applies to # scope: "users:*" # - action: "users:write" # scope: "users:*" # - action: "users:create" # scope: "users:*" # # list of builtIn roles the role should be assigned to # builtInRoles: # # name of the builtin role you want to assign the role to # - name: "Editor" # # org id. will default to the role org id # orgId: 1 # - name: "custom:global:users:reader" # uid: "customglobalusersreader1" # description: "Global Role for custom user readers" # version: 1 # # overwrite org id and creates a global role # global: true # permissions: # - action: "users:read" # scope: "users:*" # builtInRoles: # - name: "Viewer" # orgId: 1 # - name: "Editor" # # overwrite org id and assign role globally # global: true