terraform-provider-stackgen

sg_me (Data Source)

Returns the profile of the currently authenticated user, including their project (org) memberships and scopes. Use this to look up the current user’s ID for resource assignments without hard-coding it in variables.

Example Usage

data "sg_me" "current" {}

output "user_id" {
  value = data.sg_me.current.id
}

Schema

Read-Only

Nested Schema for orgs

Read-Only:

Nested Schema for tenant_memberships

Read-Only:

Nested Schema for user_identities

Read-Only: