1. Packages
  2. Coder Provider
  3. API Docs
  4. getWorkspaceOwner
coder 2.4.0-pre1 published on Tuesday, Apr 15, 2025 by coder

coder.getWorkspaceOwner

Explore with Pulumi AI

coder logo
coder 2.4.0-pre1 published on Tuesday, Apr 15, 2025 by coder

    Use this data source to fetch information about the workspace owner.

    Using getWorkspaceOwner

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getWorkspaceOwner(opts?: InvokeOptions): Promise<GetWorkspaceOwnerResult>
    function getWorkspaceOwnerOutput(opts?: InvokeOptions): Output<GetWorkspaceOwnerResult>
    def get_workspace_owner(opts: Optional[InvokeOptions] = None) -> GetWorkspaceOwnerResult
    def get_workspace_owner_output(opts: Optional[InvokeOptions] = None) -> Output[GetWorkspaceOwnerResult]
    func GetWorkspaceOwner(ctx *Context, opts ...InvokeOption) (*GetWorkspaceOwnerResult, error)
    func GetWorkspaceOwnerOutput(ctx *Context, opts ...InvokeOption) GetWorkspaceOwnerResultOutput

    > Note: This function is named GetWorkspaceOwner in the Go SDK.

    public static class GetWorkspaceOwner 
    {
        public static Task<GetWorkspaceOwnerResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetWorkspaceOwnerResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWorkspaceOwnerResult> getWorkspaceOwner(InvokeOptions options)
    public static Output<GetWorkspaceOwnerResult> getWorkspaceOwner(InvokeOptions options)
    
    fn::invoke:
      function: coder:index/getWorkspaceOwner:getWorkspaceOwner
      arguments:
        # arguments dictionary

    getWorkspaceOwner Result

    The following output properties are available:

    Email string
    The email address of the user.
    FullName string
    The full name of the user.
    Groups List<string>
    The groups of which the user is a member.
    Id string
    The UUID of the workspace owner.
    LoginType string
    The type of login the user has.
    Name string
    The username of the user.
    OidcAccessToken string
    A valid OpenID Connect access token of the workspace owner. This is only available if the workspace owner authenticated with OpenID Connect. If a valid token cannot be obtained, this value will be an empty string.
    RbacRoles List<GetWorkspaceOwnerRbacRole>
    The RBAC roles of which the user is assigned.
    SessionToken string
    Session token for authenticating with a Coder deployment. It is regenerated every time a workspace is started.
    SshPrivateKey string
    The user's generated SSH private key.
    SshPublicKey string
    The user's generated SSH public key.
    Email string
    The email address of the user.
    FullName string
    The full name of the user.
    Groups []string
    The groups of which the user is a member.
    Id string
    The UUID of the workspace owner.
    LoginType string
    The type of login the user has.
    Name string
    The username of the user.
    OidcAccessToken string
    A valid OpenID Connect access token of the workspace owner. This is only available if the workspace owner authenticated with OpenID Connect. If a valid token cannot be obtained, this value will be an empty string.
    RbacRoles []GetWorkspaceOwnerRbacRole
    The RBAC roles of which the user is assigned.
    SessionToken string
    Session token for authenticating with a Coder deployment. It is regenerated every time a workspace is started.
    SshPrivateKey string
    The user's generated SSH private key.
    SshPublicKey string
    The user's generated SSH public key.
    email String
    The email address of the user.
    fullName String
    The full name of the user.
    groups List<String>
    The groups of which the user is a member.
    id String
    The UUID of the workspace owner.
    loginType String
    The type of login the user has.
    name String
    The username of the user.
    oidcAccessToken String
    A valid OpenID Connect access token of the workspace owner. This is only available if the workspace owner authenticated with OpenID Connect. If a valid token cannot be obtained, this value will be an empty string.
    rbacRoles List<GetWorkspaceOwnerRbacRole>
    The RBAC roles of which the user is assigned.
    sessionToken String
    Session token for authenticating with a Coder deployment. It is regenerated every time a workspace is started.
    sshPrivateKey String
    The user's generated SSH private key.
    sshPublicKey String
    The user's generated SSH public key.
    email string
    The email address of the user.
    fullName string
    The full name of the user.
    groups string[]
    The groups of which the user is a member.
    id string
    The UUID of the workspace owner.
    loginType string
    The type of login the user has.
    name string
    The username of the user.
    oidcAccessToken string
    A valid OpenID Connect access token of the workspace owner. This is only available if the workspace owner authenticated with OpenID Connect. If a valid token cannot be obtained, this value will be an empty string.
    rbacRoles GetWorkspaceOwnerRbacRole[]
    The RBAC roles of which the user is assigned.
    sessionToken string
    Session token for authenticating with a Coder deployment. It is regenerated every time a workspace is started.
    sshPrivateKey string
    The user's generated SSH private key.
    sshPublicKey string
    The user's generated SSH public key.
    email str
    The email address of the user.
    full_name str
    The full name of the user.
    groups Sequence[str]
    The groups of which the user is a member.
    id str
    The UUID of the workspace owner.
    login_type str
    The type of login the user has.
    name str
    The username of the user.
    oidc_access_token str
    A valid OpenID Connect access token of the workspace owner. This is only available if the workspace owner authenticated with OpenID Connect. If a valid token cannot be obtained, this value will be an empty string.
    rbac_roles Sequence[GetWorkspaceOwnerRbacRole]
    The RBAC roles of which the user is assigned.
    session_token str
    Session token for authenticating with a Coder deployment. It is regenerated every time a workspace is started.
    ssh_private_key str
    The user's generated SSH private key.
    ssh_public_key str
    The user's generated SSH public key.
    email String
    The email address of the user.
    fullName String
    The full name of the user.
    groups List<String>
    The groups of which the user is a member.
    id String
    The UUID of the workspace owner.
    loginType String
    The type of login the user has.
    name String
    The username of the user.
    oidcAccessToken String
    A valid OpenID Connect access token of the workspace owner. This is only available if the workspace owner authenticated with OpenID Connect. If a valid token cannot be obtained, this value will be an empty string.
    rbacRoles List<Property Map>
    The RBAC roles of which the user is assigned.
    sessionToken String
    Session token for authenticating with a Coder deployment. It is regenerated every time a workspace is started.
    sshPrivateKey String
    The user's generated SSH private key.
    sshPublicKey String
    The user's generated SSH public key.

    Supporting Types

    GetWorkspaceOwnerRbacRole

    Name string
    OrgId string
    Name string
    OrgId string
    name String
    orgId String
    name string
    orgId string
    name str
    org_id str
    name String
    orgId String

    Package Details

    Repository
    coder coder/terraform-provider-coder
    License
    Notes
    This Pulumi package is based on the coder Terraform Provider.
    coder logo
    coder 2.4.0-pre1 published on Tuesday, Apr 15, 2025 by coder