terraform-provider-stackgen

sg_scopes (Data Source)

Lists all available permission scopes for use in custom roles (sg_role).

Example Usage

data "sg_scopes" "all" {}

output "scope_names" {
  value = [for s in data.sg_scopes.all.scopes : s.name]
}
# Omit system-only scopes when building custom roles in the UI or via sg_role.
data "sg_scopes" "assignable" {
  exclude_system_scopes = true
}

Schema

Optional

Read-Only

Nested Schema for scopes

Read-Only: