Lists all organizations accessible to the current user. Use this to look up organization IDs for sg_project_member or sg_secret resources.
data "sg_organizations" "mine" {}
output "first_org_id" {
value = try(data.sg_organizations.mine.organizations[0].id, null)
}
organizations (Attributes List) List of all organizations. (see below for nested schema)organizationsRead-Only:
created_at (String) Creation timestamp.description (String) Organization description.id (String) Organization UUID.name (String) Organization name.