published on Tuesday, Sep 8, 2026 by Pulumi
published on Tuesday, Sep 8, 2026 by Pulumi
Retrieves an external user — a user that can be synced from your identity provider (IdP) — with the given external ID from the customer’s IdP, scoped to a workspace. If the user does not exist in the account, it will be created. If the customer is not onboarded onto Automatic Identity Management (AIM), this returns an error.
The name uses the format external-users/{external_user_id}, where externalUserId is the user’s object ID in the IdP (for example, a Microsoft Entra ID object ID).
Note Reading this data source has a side effect: it resolves the user against the IdP and provisions the user in the account if it does not already exist. Provisioning happens at the account level; it does not assign the user to the workspace.
Note This data source can be used with an account-level or workspace-level provider. With an account-level provider, a
workspaceIdis required — set it in theproviderConfigblock (or via the provider’sworkspaceIdattribute). With a workspace-level provider,workspaceIdis optional and defaults to the provider’s workspace.
Example Usage
Referring to an external user within a workspace, using an account-level provider with the target workspace selected via providerConfig:
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const example = databricks.getWorkspaceIamExternalUserV2({
name: "external-users/11111111-2222-3333-4444-555555555555",
providerConfig: {
workspaceId: "1234567890123456",
},
});
import pulumi
import pulumi_databricks as databricks
example = databricks.get_workspace_iam_external_user_v2(name="external-users/11111111-2222-3333-4444-555555555555",
provider_config={
"workspace_id": "1234567890123456",
})
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.GetWorkspaceIamExternalUserV2(ctx, &databricks.GetWorkspaceIamExternalUserV2Args{
Name: "external-users/11111111-2222-3333-4444-555555555555",
ProviderConfig: databricks.GetWorkspaceIamExternalUserV2ProviderConfig{
WorkspaceId: "1234567890123456",
},
}, 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 example = Databricks.GetWorkspaceIamExternalUserV2.Invoke(new()
{
Name = "external-users/11111111-2222-3333-4444-555555555555",
ProviderConfig = new Databricks.Inputs.GetWorkspaceIamExternalUserV2ProviderConfigInputArgs
{
WorkspaceId = "1234567890123456",
},
});
});
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.GetWorkspaceIamExternalUserV2Args;
import com.pulumi.databricks.inputs.GetWorkspaceIamExternalUserV2ProviderConfigArgs;
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 example = DatabricksFunctions.getWorkspaceIamExternalUserV2(GetWorkspaceIamExternalUserV2Args.builder()
.name("external-users/11111111-2222-3333-4444-555555555555")
.providerConfig(GetWorkspaceIamExternalUserV2ProviderConfigArgs.builder()
.workspaceId("1234567890123456")
.build())
.build());
}
}
variables:
example:
fn::invoke:
function: databricks:getWorkspaceIamExternalUserV2
arguments:
name: external-users/11111111-2222-3333-4444-555555555555
providerConfig:
workspaceId: '1234567890123456'
pulumi {
required_providers {
databricks = {
source = "pulumi/databricks"
}
}
}
data "databricks_getworkspaceiamexternaluserv2" "example" {
name = "external-users/11111111-2222-3333-4444-555555555555"
provider_config = {
workspace_id = "1234567890123456"
}
}
Using getWorkspaceIamExternalUserV2
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 getWorkspaceIamExternalUserV2(args: GetWorkspaceIamExternalUserV2Args, opts?: InvokeOptions): Promise<GetWorkspaceIamExternalUserV2Result>
function getWorkspaceIamExternalUserV2Output(args: GetWorkspaceIamExternalUserV2OutputArgs, opts?: InvokeOutputOptions): Output<GetWorkspaceIamExternalUserV2Result>def get_workspace_iam_external_user_v2(name: Optional[str] = None,
provider_config: Optional[GetWorkspaceIamExternalUserV2ProviderConfig] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkspaceIamExternalUserV2Result
def get_workspace_iam_external_user_v2_output(name: pulumi.Input[Optional[str]] = None,
provider_config: pulumi.Input[Optional[GetWorkspaceIamExternalUserV2ProviderConfigArgs]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetWorkspaceIamExternalUserV2Result]func GetWorkspaceIamExternalUserV2(ctx *Context, args *GetWorkspaceIamExternalUserV2Args, opts ...InvokeOption) (*GetWorkspaceIamExternalUserV2Result, error)
func GetWorkspaceIamExternalUserV2Output(ctx *Context, args *GetWorkspaceIamExternalUserV2OutputArgs, opts ...InvokeOption) GetWorkspaceIamExternalUserV2ResultOutput> Note: This function is named GetWorkspaceIamExternalUserV2 in the Go SDK.
public static class GetWorkspaceIamExternalUserV2
{
public static Task<GetWorkspaceIamExternalUserV2Result> InvokeAsync(GetWorkspaceIamExternalUserV2Args args, InvokeOptions? opts = null)
public static Output<GetWorkspaceIamExternalUserV2Result> Invoke(GetWorkspaceIamExternalUserV2InvokeArgs args, InvokeOptions? opts = null)
public static Output<GetWorkspaceIamExternalUserV2Result> Invoke(GetWorkspaceIamExternalUserV2InvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetWorkspaceIamExternalUserV2Result> getWorkspaceIamExternalUserV2(GetWorkspaceIamExternalUserV2Args args, InvokeOptions options)
public static Output<GetWorkspaceIamExternalUserV2Result> getWorkspaceIamExternalUserV2(GetWorkspaceIamExternalUserV2Args args, InvokeOptions options)
public static Output<GetWorkspaceIamExternalUserV2Result> getWorkspaceIamExternalUserV2(GetWorkspaceIamExternalUserV2Args args, InvokeOutputOptions options)
fn::invoke:
function: databricks:index/getWorkspaceIamExternalUserV2:getWorkspaceIamExternalUserV2
arguments:
# arguments dictionarydata "databricks_get_workspace_iam_external_user_v2" "name" {
# arguments
}The following arguments are supported:
- Name string
- The resource name of the external user. The format depends on the API that
returned it:
- Account-scoped: accounts/{account_id}/external-users/{external_user_id}
- Workspace-scoped: external-users/{external_user_id}
- Provider
Config GetWorkspace Iam External User V2Provider Config - Configure the provider for management through account provider.
- Name string
- The resource name of the external user. The format depends on the API that
returned it:
- Account-scoped: accounts/{account_id}/external-users/{external_user_id}
- Workspace-scoped: external-users/{external_user_id}
- Provider
Config GetWorkspace Iam External User V2Provider Config - Configure the provider for management through account provider.
- name string
- The resource name of the external user. The format depends on the API that
returned it:
- Account-scoped: accounts/{account_id}/external-users/{external_user_id}
- Workspace-scoped: external-users/{external_user_id}
- provider_
config object - Configure the provider for management through account provider.
- name String
- The resource name of the external user. The format depends on the API that
returned it:
- Account-scoped: accounts/{account_id}/external-users/{external_user_id}
- Workspace-scoped: external-users/{external_user_id}
- provider
Config GetWorkspace Iam External User V2Provider Config - Configure the provider for management through account provider.
- name string
- The resource name of the external user. The format depends on the API that
returned it:
- Account-scoped: accounts/{account_id}/external-users/{external_user_id}
- Workspace-scoped: external-users/{external_user_id}
- provider
Config GetWorkspace Iam External User V2Provider Config - Configure the provider for management through account provider.
- name str
- The resource name of the external user. The format depends on the API that
returned it:
- Account-scoped: accounts/{account_id}/external-users/{external_user_id}
- Workspace-scoped: external-users/{external_user_id}
- provider_
config GetWorkspace Iam External User V2Provider Config - Configure the provider for management through account provider.
- name String
- The resource name of the external user. The format depends on the API that
returned it:
- Account-scoped: accounts/{account_id}/external-users/{external_user_id}
- Workspace-scoped: external-users/{external_user_id}
- provider
Config Property Map - Configure the provider for management through account provider.
getWorkspaceIamExternalUserV2 Result
The following output properties are available:
- Account
Id string - (string) - The parent account ID, from Databricks
- Account
User stringStatus - (string) - The activity status of the user in the Databricks account. Possible values are:
ACTIVE,INACTIVE - Display
Name string - (string) - Display name of the user from the customer's IdP
- External
User stringId - (string) - The external ID of the user in the customer's IdP
- Full
Name GetWorkspace Iam External User V2Full Name - (FullName) - The full name of the user, from the customer's IdP
- Internal
Id string - (string) - Internal userId of the user in Databricks
- Name string
- (string) - The resource name of the external user. The format depends on the API that
returned it:
- Account-scoped: accounts/{account_id}/external-users/{external_user_id}
- Workspace-scoped: external-users/{external_user_id}
- Username string
- (string) - Username/email of the user, from Databricks
- Provider
Config GetWorkspace Iam External User V2Provider Config
- Account
Id string - (string) - The parent account ID, from Databricks
- Account
User stringStatus - (string) - The activity status of the user in the Databricks account. Possible values are:
ACTIVE,INACTIVE - Display
Name string - (string) - Display name of the user from the customer's IdP
- External
User stringId - (string) - The external ID of the user in the customer's IdP
- Full
Name GetWorkspace Iam External User V2Full Name - (FullName) - The full name of the user, from the customer's IdP
- Internal
Id string - (string) - Internal userId of the user in Databricks
- Name string
- (string) - The resource name of the external user. The format depends on the API that
returned it:
- Account-scoped: accounts/{account_id}/external-users/{external_user_id}
- Workspace-scoped: external-users/{external_user_id}
- Username string
- (string) - Username/email of the user, from Databricks
- Provider
Config GetWorkspace Iam External User V2Provider Config
- account_
id string - (string) - The parent account ID, from Databricks
- account_
user_ stringstatus - (string) - The activity status of the user in the Databricks account. Possible values are:
ACTIVE,INACTIVE - display_
name string - (string) - Display name of the user from the customer's IdP
- external_
user_ stringid - (string) - The external ID of the user in the customer's IdP
- full_
name object - (FullName) - The full name of the user, from the customer's IdP
- internal_
id string - (string) - Internal userId of the user in Databricks
- name string
- (string) - The resource name of the external user. The format depends on the API that
returned it:
- Account-scoped: accounts/{account_id}/external-users/{external_user_id}
- Workspace-scoped: external-users/{external_user_id}
- username string
- (string) - Username/email of the user, from Databricks
- provider_
config object
- account
Id String - (string) - The parent account ID, from Databricks
- account
User StringStatus - (string) - The activity status of the user in the Databricks account. Possible values are:
ACTIVE,INACTIVE - display
Name String - (string) - Display name of the user from the customer's IdP
- external
User StringId - (string) - The external ID of the user in the customer's IdP
- full
Name GetWorkspace Iam External User V2Full Name - (FullName) - The full name of the user, from the customer's IdP
- internal
Id String - (string) - Internal userId of the user in Databricks
- name String
- (string) - The resource name of the external user. The format depends on the API that
returned it:
- Account-scoped: accounts/{account_id}/external-users/{external_user_id}
- Workspace-scoped: external-users/{external_user_id}
- username String
- (string) - Username/email of the user, from Databricks
- provider
Config GetWorkspace Iam External User V2Provider Config
- account
Id string - (string) - The parent account ID, from Databricks
- account
User stringStatus - (string) - The activity status of the user in the Databricks account. Possible values are:
ACTIVE,INACTIVE - display
Name string - (string) - Display name of the user from the customer's IdP
- external
User stringId - (string) - The external ID of the user in the customer's IdP
- full
Name GetWorkspace Iam External User V2Full Name - (FullName) - The full name of the user, from the customer's IdP
- internal
Id string - (string) - Internal userId of the user in Databricks
- name string
- (string) - The resource name of the external user. The format depends on the API that
returned it:
- Account-scoped: accounts/{account_id}/external-users/{external_user_id}
- Workspace-scoped: external-users/{external_user_id}
- username string
- (string) - Username/email of the user, from Databricks
- provider
Config GetWorkspace Iam External User V2Provider Config
- account_
id str - (string) - The parent account ID, from Databricks
- account_
user_ strstatus - (string) - The activity status of the user in the Databricks account. Possible values are:
ACTIVE,INACTIVE - display_
name str - (string) - Display name of the user from the customer's IdP
- external_
user_ strid - (string) - The external ID of the user in the customer's IdP
- full_
name GetWorkspace Iam External User V2Full Name - (FullName) - The full name of the user, from the customer's IdP
- internal_
id str - (string) - Internal userId of the user in Databricks
- name str
- (string) - The resource name of the external user. The format depends on the API that
returned it:
- Account-scoped: accounts/{account_id}/external-users/{external_user_id}
- Workspace-scoped: external-users/{external_user_id}
- username str
- (string) - Username/email of the user, from Databricks
- provider_
config GetWorkspace Iam External User V2Provider Config
- account
Id String - (string) - The parent account ID, from Databricks
- account
User StringStatus - (string) - The activity status of the user in the Databricks account. Possible values are:
ACTIVE,INACTIVE - display
Name String - (string) - Display name of the user from the customer's IdP
- external
User StringId - (string) - The external ID of the user in the customer's IdP
- full
Name Property Map - (FullName) - The full name of the user, from the customer's IdP
- internal
Id String - (string) - Internal userId of the user in Databricks
- name String
- (string) - The resource name of the external user. The format depends on the API that
returned it:
- Account-scoped: accounts/{account_id}/external-users/{external_user_id}
- Workspace-scoped: external-users/{external_user_id}
- username String
- (string) - Username/email of the user, from Databricks
- provider
Config Property Map
Supporting Types
GetWorkspaceIamExternalUserV2FullName
- Family
Name string - (string) - The family (last) name of the user, from the customer's IdP
- Given
Name string - (string) - The given (first) name of the user, from the customer's IdP
- Family
Name string - (string) - The family (last) name of the user, from the customer's IdP
- Given
Name string - (string) - The given (first) name of the user, from the customer's IdP
- family_
name string - (string) - The family (last) name of the user, from the customer's IdP
- given_
name string - (string) - The given (first) name of the user, from the customer's IdP
- family
Name String - (string) - The family (last) name of the user, from the customer's IdP
- given
Name String - (string) - The given (first) name of the user, from the customer's IdP
- family
Name string - (string) - The family (last) name of the user, from the customer's IdP
- given
Name string - (string) - The given (first) name of the user, from the customer's IdP
- family_
name str - (string) - The family (last) name of the user, from the customer's IdP
- given_
name str - (string) - The given (first) name of the user, from the customer's IdP
- family
Name String - (string) - The family (last) name of the user, from the customer's IdP
- given
Name String - (string) - The given (first) name of the user, from the customer's IdP
GetWorkspaceIamExternalUserV2ProviderConfig
- 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.
published on Tuesday, Sep 8, 2026 by Pulumi