Databricks v1.86.0 published on Tuesday, Feb 17, 2026 by Pulumi
Databricks v1.86.0 published on Tuesday, Feb 17, 2026 by Pulumi
Retrieves information about databricks.User or databricks_service_principal, that is calling Databricks REST API. Might be useful in applying the same Pulumi by different users in the shared workspace for testing purposes.
This data source can only be used with a workspace-level provider!
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(args: GetCurrentUserArgs, opts?: InvokeOptions): Promise<GetCurrentUserResult>
function getCurrentUserOutput(args: GetCurrentUserOutputArgs, opts?: InvokeOptions): Output<GetCurrentUserResult>def get_current_user(provider_config: Optional[GetCurrentUserProviderConfig] = None,
opts: Optional[InvokeOptions] = None) -> GetCurrentUserResult
def get_current_user_output(provider_config: Optional[pulumi.Input[GetCurrentUserProviderConfigArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCurrentUserResult]func GetCurrentUser(ctx *Context, args *GetCurrentUserArgs, opts ...InvokeOption) (*GetCurrentUserResult, error)
func GetCurrentUserOutput(ctx *Context, args *GetCurrentUserOutputArgs, opts ...InvokeOption) GetCurrentUserResultOutput> Note: This function is named GetCurrentUser in the Go SDK.
public static class GetCurrentUser
{
public static Task<GetCurrentUserResult> InvokeAsync(GetCurrentUserArgs args, InvokeOptions? opts = null)
public static Output<GetCurrentUserResult> Invoke(GetCurrentUserInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCurrentUserResult> getCurrentUser(GetCurrentUserArgs args, InvokeOptions options)
public static Output<GetCurrentUserResult> getCurrentUser(GetCurrentUserArgs args, InvokeOptions options)
fn::invoke:
function: databricks:index/getCurrentUser:getCurrentUser
arguments:
# arguments dictionaryThe following arguments are supported:
- Provider
Config GetCurrent User Provider Config - Configure the provider for management through account provider. This block consists of the following fields:
- Provider
Config GetCurrent User Provider Config - Configure the provider for management through account provider. This block consists of the following fields:
- provider
Config GetCurrent User Provider Config - Configure the provider for management through account provider. This block consists of the following fields:
- provider
Config GetCurrent User Provider Config - Configure the provider for management through account provider. This block consists of the following fields:
- provider_
config GetCurrent User Provider Config - Configure the provider for management through account provider. This block consists of the following fields:
- provider
Config Property Map - Configure the provider for management through account provider. This block consists of the following fields:
getCurrentUser Result
The following output properties are available:
- Acl
Principal stringId - Alphanumeric string
- External
Id string - Home string
- Id string
- The provider-assigned unique ID for this managed resource.
- Repos string
- User
Name string - Workspace
Url string - Provider
Config GetCurrent User Provider Config
- Acl
Principal stringId - Alphanumeric string
- External
Id string - Home string
- Id string
- The provider-assigned unique ID for this managed resource.
- Repos string
- User
Name string - Workspace
Url string - Provider
Config GetCurrent User Provider Config
- acl
Principal StringId - alphanumeric String
- external
Id String - home String
- id String
- The provider-assigned unique ID for this managed resource.
- repos String
- user
Name String - workspace
Url String - provider
Config GetCurrent User Provider Config
- acl
Principal stringId - alphanumeric string
- external
Id string - home string
- id string
- The provider-assigned unique ID for this managed resource.
- repos string
- user
Name string - workspace
Url string - provider
Config GetCurrent User Provider Config
- acl_
principal_ strid - 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 - provider_
config GetCurrent User Provider Config
- acl
Principal StringId - alphanumeric String
- external
Id String - home String
- id String
- The provider-assigned unique ID for this managed resource.
- repos String
- user
Name String - workspace
Url String - provider
Config Property Map
Supporting Types
GetCurrentUserProviderConfig
- Workspace
Id string - Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
- Workspace
Id string - Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
- workspace
Id String - Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
- workspace
Id string - Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
- workspace_
id str - Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
- workspace
Id String - Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricksTerraform Provider.
Databricks v1.86.0 published on Tuesday, Feb 17, 2026 by Pulumi
