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