1. Packages
  2. Databricks
  3. API Docs
  4. getCurrentUser
Databricks v1.33.0 published on Thursday, Feb 22, 2024 by Pulumi

databricks.getCurrentUser

Explore with Pulumi AI

databricks logo
Databricks v1.33.0 published on Thursday, Feb 22, 2024 by Pulumi

    Exported attributes

    Data source exposes the following attributes:

    • id - The id of the calling user.
    • external_id - ID of the user in an external identity provider.
    • user_name - Name of the user, e.g. mr.foo@example.com. If the currently logged-in identity is a service principal, returns the application ID, e.g. 11111111-2222-3333-4444-555666777888
    • home - Home folder of the user, e.g. /Users/mr.foo@example.com.
    • repos - Personal Repos location of the user, e.g. /Repos/mr.foo@example.com.
    • alphanumeric - Alphanumeric representation of user local name. e.g. mr_foo.
    • workspace_url - URL of the current Databricks workspace.
    • acl_principal_id - identifier for use in databricks_access_control_rule_set, e.g. users/mr.foo@example.com if current user is user, or servicePrincipals/00000000-0000-0000-0000-000000000000 if current user is service principal.

    The following resources are used in the same context:

    Using getCurrentUser

    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 getCurrentUser(opts?: InvokeOptions): Promise<GetCurrentUserResult>
    function getCurrentUserOutput(opts?: InvokeOptions): Output<GetCurrentUserResult>
    def get_current_user(opts: Optional[InvokeOptions] = None) -> GetCurrentUserResult
    def get_current_user_output(opts: Optional[InvokeOptions] = None) -> Output[GetCurrentUserResult]
    func GetCurrentUser(ctx *Context, opts ...InvokeOption) (*GetCurrentUserResult, error)
    func GetCurrentUserOutput(ctx *Context, opts ...InvokeOption) GetCurrentUserResultOutput

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

    public static class GetCurrentUser 
    {
        public static Task<GetCurrentUserResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetCurrentUserResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCurrentUserResult> getCurrentUser(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: databricks:index/getCurrentUser:getCurrentUser
      arguments:
        # arguments dictionary

    getCurrentUser Result

    The following output properties are available:

    AclPrincipalId string
    Alphanumeric string
    ExternalId string
    Home string
    Id string
    The provider-assigned unique ID for this managed resource.
    Repos string
    UserName string
    WorkspaceUrl string
    AclPrincipalId string
    Alphanumeric string
    ExternalId string
    Home string
    Id string
    The provider-assigned unique ID for this managed resource.
    Repos string
    UserName string
    WorkspaceUrl string
    aclPrincipalId String
    alphanumeric String
    externalId String
    home String
    id String
    The provider-assigned unique ID for this managed resource.
    repos String
    userName String
    workspaceUrl String
    aclPrincipalId string
    alphanumeric string
    externalId string
    home string
    id string
    The provider-assigned unique ID for this managed resource.
    repos string
    userName string
    workspaceUrl string
    acl_principal_id str
    alphanumeric str
    external_id str
    home str
    id str
    The provider-assigned unique ID for this managed resource.
    repos str
    user_name str
    workspace_url str
    aclPrincipalId String
    alphanumeric String
    externalId String
    home String
    id String
    The provider-assigned unique ID for this managed resource.
    repos String
    userName String
    workspaceUrl String

    Package Details

    Repository
    databricks pulumi/pulumi-databricks
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the databricks Terraform Provider.
    databricks logo
    Databricks v1.33.0 published on Thursday, Feb 22, 2024 by Pulumi