Lists all available permission scopes for use in custom roles (sg_role).
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
}
exclude_system_scopes (Boolean) If true exclude system-level scopes that cannot be used in custom roles.scopes (Attributes List) List of available permission scopes. (see below for nested schema)scopesRead-Only:
description (String) What the scope permits.name (String) Scope identifier (e.g. createAppStacks or listOrg).