Viewing docs for Databricks v1.109.0
published on Tuesday, Sep 8, 2026 by Pulumi
published on Tuesday, Sep 8, 2026 by Pulumi
Viewing docs for Databricks v1.109.0
published on Tuesday, Sep 8, 2026 by Pulumi
published on Tuesday, Sep 8, 2026 by Pulumi
Reads a single user by its internal ID, using a workspace-scoped provider.
Example Usage
Example usage:
Look up a user by its internal ID, using a workspace-scoped provider.
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const _this = databricks.getWorkspaceIamUserV2({
userId: "123456789",
});
import pulumi
import pulumi_databricks as databricks
this = databricks.get_workspace_iam_user_v2(user_id="123456789")
package main
import (
"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databricks.GetWorkspaceIamUserV2(ctx, &databricks.LookupWorkspaceIamUserV2Args{
UserId: "123456789",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var @this = Databricks.GetWorkspaceIamUserV2.Invoke(new()
{
UserId = "123456789",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.DatabricksFunctions;
import com.pulumi.databricks.inputs.GetWorkspaceIamUserV2Args;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var this = DatabricksFunctions.getWorkspaceIamUserV2(GetWorkspaceIamUserV2Args.builder()
.userId("123456789")
.build());
}
}
variables:
this:
fn::invoke:
function: databricks:getWorkspaceIamUserV2
arguments:
userId: '123456789'
pulumi {
required_providers {
databricks = {
source = "pulumi/databricks"
}
}
}
data "databricks_getworkspaceiamuserv2" "this" {
user_id = "123456789"
}
Using getWorkspaceIamUserV2
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 getWorkspaceIamUserV2(args: GetWorkspaceIamUserV2Args, opts?: InvokeOptions): Promise<GetWorkspaceIamUserV2Result>
function getWorkspaceIamUserV2Output(args: GetWorkspaceIamUserV2OutputArgs, opts?: InvokeOutputOptions): Output<GetWorkspaceIamUserV2Result>def get_workspace_iam_user_v2(provider_config: Optional[GetWorkspaceIamUserV2ProviderConfig] = None,
user_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkspaceIamUserV2Result
def get_workspace_iam_user_v2_output(provider_config: pulumi.Input[Optional[GetWorkspaceIamUserV2ProviderConfigArgs]] = None,
user_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetWorkspaceIamUserV2Result]func LookupWorkspaceIamUserV2(ctx *Context, args *LookupWorkspaceIamUserV2Args, opts ...InvokeOption) (*LookupWorkspaceIamUserV2Result, error)
func LookupWorkspaceIamUserV2Output(ctx *Context, args *LookupWorkspaceIamUserV2OutputArgs, opts ...InvokeOption) LookupWorkspaceIamUserV2ResultOutput> Note: This function is named LookupWorkspaceIamUserV2 in the Go SDK.
public static class GetWorkspaceIamUserV2
{
public static Task<GetWorkspaceIamUserV2Result> InvokeAsync(GetWorkspaceIamUserV2Args args, InvokeOptions? opts = null)
public static Output<GetWorkspaceIamUserV2Result> Invoke(GetWorkspaceIamUserV2InvokeArgs args, InvokeOptions? opts = null)
public static Output<GetWorkspaceIamUserV2Result> Invoke(GetWorkspaceIamUserV2InvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetWorkspaceIamUserV2Result> getWorkspaceIamUserV2(GetWorkspaceIamUserV2Args args, InvokeOptions options)
public static Output<GetWorkspaceIamUserV2Result> getWorkspaceIamUserV2(GetWorkspaceIamUserV2Args args, InvokeOptions options)
public static Output<GetWorkspaceIamUserV2Result> getWorkspaceIamUserV2(GetWorkspaceIamUserV2Args args, InvokeOutputOptions options)
fn::invoke:
function: databricks:index/getWorkspaceIamUserV2:getWorkspaceIamUserV2
arguments:
# arguments dictionarydata "databricks_get_workspace_iam_user_v2" "name" {
# arguments
}The following arguments are supported:
- User
Id string - Internal userId of the user in Databricks
- Provider
Config GetWorkspace Iam User V2Provider Config - Configure the provider for management through account provider.
- User
Id string - Internal userId of the user in Databricks
- Provider
Config GetWorkspace Iam User V2Provider Config - Configure the provider for management through account provider.
- user_
id string - Internal userId of the user in Databricks
- provider_
config object - Configure the provider for management through account provider.
- user
Id String - Internal userId of the user in Databricks
- provider
Config GetWorkspace Iam User V2Provider Config - Configure the provider for management through account provider.
- user
Id string - Internal userId of the user in Databricks
- provider
Config GetWorkspace Iam User V2Provider Config - Configure the provider for management through account provider.
- user_
id str - Internal userId of the user in Databricks
- provider_
config GetWorkspace Iam User V2Provider Config - Configure the provider for management through account provider.
- user
Id String - Internal userId of the user in Databricks
- provider
Config Property Map - Configure the provider for management through account provider.
getWorkspaceIamUserV2 Result
The following output properties are available:
- Account
Id string - (string) - The accountId parent of the user in Databricks
- Account
User stringStatus - (string) - The activity status of a user in a Databricks account. Possible values are:
ACTIVE,INACTIVE - External
Id string - (string) - ExternalId of the user in the customer's IdP
- Full
Name GetWorkspace Iam User V2Full Name - (UserFullName)
- User
Id string - (string) - Internal userId of the user in Databricks
- Username string
- (string) - Username/email of the user
- Provider
Config GetWorkspace Iam User V2Provider Config
- Account
Id string - (string) - The accountId parent of the user in Databricks
- Account
User stringStatus - (string) - The activity status of a user in a Databricks account. Possible values are:
ACTIVE,INACTIVE - External
Id string - (string) - ExternalId of the user in the customer's IdP
- Full
Name GetWorkspace Iam User V2Full Name - (UserFullName)
- User
Id string - (string) - Internal userId of the user in Databricks
- Username string
- (string) - Username/email of the user
- Provider
Config GetWorkspace Iam User V2Provider Config
- account_
id string - (string) - The accountId parent of the user in Databricks
- account_
user_ stringstatus - (string) - The activity status of a user in a Databricks account. Possible values are:
ACTIVE,INACTIVE - external_
id string - (string) - ExternalId of the user in the customer's IdP
- full_
name object - (UserFullName)
- user_
id string - (string) - Internal userId of the user in Databricks
- username string
- (string) - Username/email of the user
- provider_
config object
- account
Id String - (string) - The accountId parent of the user in Databricks
- account
User StringStatus - (string) - The activity status of a user in a Databricks account. Possible values are:
ACTIVE,INACTIVE - external
Id String - (string) - ExternalId of the user in the customer's IdP
- full
Name GetWorkspace Iam User V2Full Name - (UserFullName)
- user
Id String - (string) - Internal userId of the user in Databricks
- username String
- (string) - Username/email of the user
- provider
Config GetWorkspace Iam User V2Provider Config
- account
Id string - (string) - The accountId parent of the user in Databricks
- account
User stringStatus - (string) - The activity status of a user in a Databricks account. Possible values are:
ACTIVE,INACTIVE - external
Id string - (string) - ExternalId of the user in the customer's IdP
- full
Name GetWorkspace Iam User V2Full Name - (UserFullName)
- user
Id string - (string) - Internal userId of the user in Databricks
- username string
- (string) - Username/email of the user
- provider
Config GetWorkspace Iam User V2Provider Config
- account_
id str - (string) - The accountId parent of the user in Databricks
- account_
user_ strstatus - (string) - The activity status of a user in a Databricks account. Possible values are:
ACTIVE,INACTIVE - external_
id str - (string) - ExternalId of the user in the customer's IdP
- full_
name GetWorkspace Iam User V2Full Name - (UserFullName)
- user_
id str - (string) - Internal userId of the user in Databricks
- username str
- (string) - Username/email of the user
- provider_
config GetWorkspace Iam User V2Provider Config
- account
Id String - (string) - The accountId parent of the user in Databricks
- account
User StringStatus - (string) - The activity status of a user in a Databricks account. Possible values are:
ACTIVE,INACTIVE - external
Id String - (string) - ExternalId of the user in the customer's IdP
- full
Name Property Map - (UserFullName)
- user
Id String - (string) - Internal userId of the user in Databricks
- username String
- (string) - Username/email of the user
- provider
Config Property Map
Supporting Types
GetWorkspaceIamUserV2FullName
- Family
Name string - (string)
- Given
Name string - (string)
- Family
Name string - (string)
- Given
Name string - (string)
- family_
name string - (string)
- given_
name string - (string)
- family
Name String - (string)
- given
Name String - (string)
- family
Name string - (string)
- given
Name string - (string)
- family_
name str - (string)
- given_
name str - (string)
- family
Name String - (string)
- given
Name String - (string)
GetWorkspaceIamUserV2ProviderConfig
- 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 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.
Viewing docs for Databricks v1.109.0
published on Tuesday, Sep 8, 2026 by Pulumi
published on Tuesday, Sep 8, 2026 by Pulumi