Databricks

v0.4.0 published on Wednesday, Apr 20, 2022 by Pulumi

getCurrentUser

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.
  • 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.

The following resources are used in the same context:

Using getCurrentUser

function getCurrentUser(opts?: InvokeOptions): Promise<GetCurrentUserResult>
def get_current_user(opts: Optional[InvokeOptions] = None) -> GetCurrentUserResult
func GetCurrentUser(ctx *Context, opts ...InvokeOption) (*GetCurrentUserResult, error)

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

public static class GetCurrentUser 
{
    public static Task<GetCurrentUserResult> InvokeAsync(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:

Alphanumeric string
ExternalId string
Home string
Id string

The provider-assigned unique ID for this managed resource.

Repos string
UserName string
WorkspaceUrl string
Alphanumeric string
ExternalId string
Home string
Id string

The provider-assigned unique ID for this managed resource.

Repos string
UserName string
WorkspaceUrl string
alphanumeric String
externalId String
home String
id String

The provider-assigned unique ID for this managed resource.

repos String
userName String
workspaceUrl String
alphanumeric string
externalId string
home string
id string

The provider-assigned unique ID for this managed resource.

repos string
userName string
workspaceUrl string
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
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
https://github.com/pulumi/pulumi-databricks
License
Apache-2.0
Notes

This Pulumi package is based on the databricks Terraform Provider.