Lists all available roles (built-in and custom). Use this to look up role IDs for sg_project_member assignments.
data "sg_roles" "all" {}
output "admin_role_id" {
value = one([for r in data.sg_roles.all.roles : r.id if r.name == "admin"])
}
roles (Attributes List) List of all roles. (see below for nested schema)rolesRead-Only:
custom (Boolean) true for custom user-created roles; false for built-in.description (String) Role description.id (String) Role UUID.name (String) Role name (e.g. admin or developer).scopes (Set of String) Permission scopes assigned to this role.