databricks.getCurrentUser
Explore with Pulumi AI
Note If you have a fully automated setup with workspaces created by databricks.MwsWorkspaces or azurerm_databricks_workspace, please make sure to add depends_on attribute in order to prevent default auth: cannot configure default credentials errors.
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.
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)
public static Output<GetCurrentUserResult> getCurrentUser(InvokeOptions options)
fn::invoke:
  function: databricks:index/getCurrentUser:getCurrentUser
  arguments:
    # arguments dictionarygetCurrentUser Result
The following output properties are available:
- AclPrincipal stringId 
- Alphanumeric string
- ExternalId string
- Home string
- Id string
- The provider-assigned unique ID for this managed resource.
- Repos string
- UserName string
- WorkspaceUrl string
- AclPrincipal stringId 
- Alphanumeric string
- ExternalId string
- Home string
- Id string
- The provider-assigned unique ID for this managed resource.
- Repos string
- UserName string
- WorkspaceUrl string
- aclPrincipal StringId 
- alphanumeric String
- externalId String
- home String
- id String
- The provider-assigned unique ID for this managed resource.
- repos String
- userName String
- workspaceUrl String
- aclPrincipal stringId 
- 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_ 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
- aclPrincipal StringId 
- 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 databricksTerraform Provider.