What's next from Grafana Labsbreadcrumb arrow New global user-role assignments will be rejected in Grafana Cloud
What's next from Grafana Labs
What's next from Grafana Labs
Breaking change
Authentication and authorization Breaking change
Announcement
2026-11-20
Planned rollout in Cloud (provisional)
To be confirmed
Targeted self-managed release
No self-managed release

New global user-role assignments will be rejected in Grafana Cloud

The role-based access control (RBAC) application programming interface (API) will reject new global user-role assignments in Grafana Cloud.

Existing assignments will remain in place. Terraform configurations using grafana_role_assignment will continue to work. Action is needed if your automation uses global: true to create new assignments for users or service accounts through POST or PUT /api/access-control/users/{userId}/roles. This notice also explains the related restriction already introduced for creating global custom roles.

Creating new role assignments

Creating a new global assignment with POST /api/access-control/users/{userId}/roles and global: true previously succeeded. After this change, that operation will return 400 Bad Request. Use global: false, or omit global, to assign the role in the current organization instead. This also applies when you use a service account ID in place of the user ID.

For example, assume user 42 belongs to the current organization, role custom-reader already has a global definition, the user does not have that role, and you are authorized to assign it. Send the request to POST /api/access-control/users/42/roles.

Before: create a global assignment
JSON
{
  "roleUid": "custom-reader",
  "global": true
}

This request can currently succeed. After the change, it will be rejected.

After: create a local assignment
JSON
{
  "roleUid": "custom-reader",
  "global": false
}

This assigns the same role in the current organization. In Grafana Cloud, assigning the same role locally grants the same access within your organization as assigning it globally. A globally defined role can still be assigned locally; definition scope and assignment scope are separate.

Replacing role assignments

The same restriction will apply to PUT /api/access-control/users/{userId}/roles: a request with global: true will be rejected if its roleUids list introduces a new global assignment. A rejected request will not apply any removals included in that replacement.

When changing a replacement request to global: false, rebuild the desired list to preserve the local assignments you intend to keep. Replaying a global replacement list as a local one can remove unrelated local assignments. If you only need to add one role, use POST instead.

An earlier change introduced the same organization-scope requirement for new custom roles in Grafana Cloud. With this restriction in place, POST /api/access-control/roles with global: true returns 403 Forbidden. Create new custom roles with global: false, or omit global.

For example, this Terraform configuration creates a new local custom role:

hcl
resource "grafana_role" "local_reader" {
  name   = "custom:local-reader"
  global = false

  permissions {
    action = "users:read"
    scope  = "users:*"
  }
}

Existing Terraform-managed global roles remain updatable. You do not need to replace existing roles for this change. Changing global from true to false requires deleting and recreating the role; it cannot be changed in place. Existing assignments are not carried over to the replacement role and must be recreated.

What isn’t changing

This restriction does not remove existing global roles or assignments. You can continue managing existing custom roles, subject to the usual authorization checks. You do not need to recreate existing Terraform resources or change existing assignments for this update.

The grafana_role_assignment Terraform resource already manages assignments in the selected organization, so its existing configuration and creation of local assignments are unaffected. Team assignments and local assignments made through the Grafana role picker are also unchanged. Requests using global: false, or omitting global, continue to use local scope.

What to do now

  • New assignments through the API: Set global: false, or omit global, on requests that add user or service-account assignments. Keep requests intended to remove existing global assignments scoped to those assignments.
  • Replacement requests: Preserve the intended local assignments in roleUids, test the replacement, and verify the resulting roles with GET /api/access-control/users/{userId}/roles.
  • New custom roles: Use local scope when creating roles through the API or Terraform. Apply this when creating or recreating a role; do not wait for the assignment change to reach your stack.

Related What's next posts