Skip to content

Commit 0d0e1cc

Browse files
authored
add the new role_values_viewer field to SSO SAML settings (#1600)
1 parent abff181 commit 0d0e1cc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/resources/sso_settings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ Optional:
164164
- `role_values_editor` (String) List of comma- or space-separated roles which will be mapped into the Editor role.
165165
- `role_values_grafana_admin` (String) List of comma- or space-separated roles which will be mapped into the Grafana Admin (Super Admin) role.
166166
- `role_values_none` (String) List of comma- or space-separated roles which will be mapped into the None role.
167+
- `role_values_viewer` (String) List of comma- or space-separated roles which will be mapped into the Viewer role.
167168
- `signature_algorithm` (String) Signature algorithm used for signing requests to the IdP. Supported values are rsa-sha1, rsa-sha256, rsa-sha512.
168169
- `single_logout` (Boolean) Whether SAML Single Logout is enabled.
169170
- `skip_org_role_sync` (Boolean) Prevent synchronizing users’ organization roles from your IdP.

internal/resources/grafana/resource_sso_settings.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,11 @@ var samlSettingsSchema = &schema.Resource{
409409
Optional: true,
410410
Description: "List of comma- or space-separated roles which will be mapped into the None role.",
411411
},
412+
"role_values_viewer": {
413+
Type: schema.TypeString,
414+
Optional: true,
415+
Description: "List of comma- or space-separated roles which will be mapped into the Viewer role.",
416+
},
412417
"role_values_editor": {
413418
Type: schema.TypeString,
414419
Optional: true,

0 commit comments

Comments
 (0)