mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Docs: add information about overrideRole
provisioning option to docs (#89181)
add information about overrideRole provisioning option to docs
This commit is contained in:
parent
63c4d7373a
commit
b2864d6dfb
@ -270,13 +270,14 @@ You cannot modify the `No Basic Role` permissions.
|
|||||||
|
|
||||||
1. Refer to the following table to add attributes and values.
|
1. Refer to the following table to add attributes and values.
|
||||||
|
|
||||||
| Attribute | Description |
|
| Attribute | Description |
|
||||||
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `name` | The name of the basic role you want to update. You can specify a `uid` instead of a role name. The role `name` or the `uid` are required. |
|
| `name` | The name of the basic role you want to update. You can specify a `uid` instead of a role name. The role `name` or the `uid` are required. |
|
||||||
| `orgId` | Identifies the organization to which the role belongs. `global` can be used instead to specify it's a global role. |
|
| `orgId` | Identifies the organization to which the role belongs. `global` can be used instead to specify it's a global role. |
|
||||||
| `version` | Identifies the version of the role, which prevents overwriting newer changes. |
|
| `version` | Identifies the version of the role, which prevents overwriting newer changes. |
|
||||||
| `from` | List of roles from which to copy permissions. |
|
| `overrideRole` | If set to true, role will be updated regardless of its version in the database. There is no need to specify `version` if `overrideRole` is set to `true`. |
|
||||||
| `permissions > state` | The state of the permission. You can set it to `absent` to ensure it exclusion from the copy list. |
|
| `from` | List of roles from which to copy permissions. |
|
||||||
|
| `permissions > state` | The state of the permission. You can set it to `absent` to ensure it exclusion from the copy list. |
|
||||||
|
|
||||||
1. Reload the provisioning configuration file.
|
1. Reload the provisioning configuration file.
|
||||||
|
|
||||||
|
@ -91,7 +91,8 @@ roles:
|
|||||||
# <bool> force deletion revoking all grants of the role.
|
# <bool> force deletion revoking all grants of the role.
|
||||||
force: true
|
force: true
|
||||||
- uid: 'basic_editor'
|
- uid: 'basic_editor'
|
||||||
version: 2
|
# <bool> always apply the specified changes to the role, regardless of the role version in the data base
|
||||||
|
overrideRole: true
|
||||||
global: true
|
global: true
|
||||||
# <list> list of roles to copy permissions from.
|
# <list> list of roles to copy permissions from.
|
||||||
from:
|
from:
|
||||||
|
Loading…
Reference in New Issue
Block a user