{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-managed-grafana/refs/heads/main/json-structure/amazon-managed-grafana-role-values-structure.json",
  "name": "RoleValues",
  "description": "This structure defines which groups defined in the SAML assertion attribute are to be mapped to the Grafana <code>Admin</code> and <code>Editor</code> roles in the workspace. SAML authenticated users not part of <code>Admin</code> or <code>Editor</code> role groups have <code>Viewer</code> permission over the workspace.",
  "type": "object",
  "properties": {
    "admin": {
      "allOf": [
        {
          "$ref": "#/components/schemas/RoleValueList"
        },
        {
          "description": "A list of groups from the SAML assertion attribute to grant the Grafana <code>Admin</code> role to."
        }
      ]
    },
    "editor": {
      "allOf": [
        {
          "$ref": "#/components/schemas/RoleValueList"
        },
        {
          "description": "A list of groups from the SAML assertion attribute to grant the Grafana <code>Editor</code> role to."
        }
      ]
    }
  }
}