1. Registry
  2. Packages
  3. Databricks Provider
  4. API Docs
  5. getWorkspaceIamWorkspaceIdentityDetailV2
Viewing docs for Databricks v1.109.0
published on Tuesday, Sep 8, 2026 by Pulumi
databricks logo databricks logo
Viewing docs for Databricks v1.109.0
published on Tuesday, Sep 8, 2026 by Pulumi

    Public Beta

    API Documentation

    Reads the workspace identity detail for a principal — its principal type, assignment type (direct or indirect), and workspace activity status.

    Using getWorkspaceIamWorkspaceIdentityDetailV2

    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 getWorkspaceIamWorkspaceIdentityDetailV2(args: GetWorkspaceIamWorkspaceIdentityDetailV2Args, opts?: InvokeOptions): Promise<GetWorkspaceIamWorkspaceIdentityDetailV2Result>
    function getWorkspaceIamWorkspaceIdentityDetailV2Output(args: GetWorkspaceIamWorkspaceIdentityDetailV2OutputArgs, opts?: InvokeOutputOptions): Output<GetWorkspaceIamWorkspaceIdentityDetailV2Result>
    def get_workspace_iam_workspace_identity_detail_v2(principal_id: Optional[str] = None,
                                                       provider_config: Optional[GetWorkspaceIamWorkspaceIdentityDetailV2ProviderConfig] = None,
                                                       opts: Optional[InvokeOptions] = None) -> GetWorkspaceIamWorkspaceIdentityDetailV2Result
    def get_workspace_iam_workspace_identity_detail_v2_output(principal_id: pulumi.Input[Optional[str]] = None,
                                                       provider_config: pulumi.Input[Optional[GetWorkspaceIamWorkspaceIdentityDetailV2ProviderConfigArgs]] = None,
                                                       opts: Optional[InvokeOutputOptions] = None) -> Output[GetWorkspaceIamWorkspaceIdentityDetailV2Result]
    func LookupWorkspaceIamWorkspaceIdentityDetailV2(ctx *Context, args *LookupWorkspaceIamWorkspaceIdentityDetailV2Args, opts ...InvokeOption) (*LookupWorkspaceIamWorkspaceIdentityDetailV2Result, error)
    func LookupWorkspaceIamWorkspaceIdentityDetailV2Output(ctx *Context, args *LookupWorkspaceIamWorkspaceIdentityDetailV2OutputArgs, opts ...InvokeOption) LookupWorkspaceIamWorkspaceIdentityDetailV2ResultOutput

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

    public static class GetWorkspaceIamWorkspaceIdentityDetailV2 
    {
        public static Task<GetWorkspaceIamWorkspaceIdentityDetailV2Result> InvokeAsync(GetWorkspaceIamWorkspaceIdentityDetailV2Args args, InvokeOptions? opts = null)
        public static Output<GetWorkspaceIamWorkspaceIdentityDetailV2Result> Invoke(GetWorkspaceIamWorkspaceIdentityDetailV2InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkspaceIamWorkspaceIdentityDetailV2Result> Invoke(GetWorkspaceIamWorkspaceIdentityDetailV2InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetWorkspaceIamWorkspaceIdentityDetailV2Result> getWorkspaceIamWorkspaceIdentityDetailV2(GetWorkspaceIamWorkspaceIdentityDetailV2Args args, InvokeOptions options)
    public static Output<GetWorkspaceIamWorkspaceIdentityDetailV2Result> getWorkspaceIamWorkspaceIdentityDetailV2(GetWorkspaceIamWorkspaceIdentityDetailV2Args args, InvokeOptions options)
    public static Output<GetWorkspaceIamWorkspaceIdentityDetailV2Result> getWorkspaceIamWorkspaceIdentityDetailV2(GetWorkspaceIamWorkspaceIdentityDetailV2Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: databricks:index/getWorkspaceIamWorkspaceIdentityDetailV2:getWorkspaceIamWorkspaceIdentityDetailV2
      arguments:
        # arguments dictionary
    data "databricks_get_workspace_iam_workspace_identity_detail_v2" "name" {
        # arguments
    }

    The following arguments are supported:

    PrincipalId string
    The internal ID of the principal (user/sp/group) in Databricks
    ProviderConfig GetWorkspaceIamWorkspaceIdentityDetailV2ProviderConfig
    Configure the provider for management through account provider.
    PrincipalId string
    The internal ID of the principal (user/sp/group) in Databricks
    ProviderConfig GetWorkspaceIamWorkspaceIdentityDetailV2ProviderConfig
    Configure the provider for management through account provider.
    principal_id string
    The internal ID of the principal (user/sp/group) in Databricks
    provider_config object
    Configure the provider for management through account provider.
    principalId String
    The internal ID of the principal (user/sp/group) in Databricks
    providerConfig GetWorkspaceIamWorkspaceIdentityDetailV2ProviderConfig
    Configure the provider for management through account provider.
    principalId string
    The internal ID of the principal (user/sp/group) in Databricks
    providerConfig GetWorkspaceIamWorkspaceIdentityDetailV2ProviderConfig
    Configure the provider for management through account provider.
    principal_id str
    The internal ID of the principal (user/sp/group) in Databricks
    provider_config GetWorkspaceIamWorkspaceIdentityDetailV2ProviderConfig
    Configure the provider for management through account provider.
    principalId String
    The internal ID of the principal (user/sp/group) in Databricks
    providerConfig Property Map
    Configure the provider for management through account provider.

    getWorkspaceIamWorkspaceIdentityDetailV2 Result

    The following output properties are available:

    AssignmentType string
    (string) - The type of assignment the principal has to the workspace (direct or indirect). Possible values are: DIRECT, INDIRECT
    PrincipalId string
    (integer) - The internal ID of the principal (user/sp/group) in Databricks
    PrincipalType string
    (string) - The type of the principal (user/service principal/group). Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    WorkspaceIdentityStatus string
    (string) - The activity status of an identity in a Databricks workspace. Possible values are: ACTIVE, INACTIVE
    ProviderConfig GetWorkspaceIamWorkspaceIdentityDetailV2ProviderConfig
    AssignmentType string
    (string) - The type of assignment the principal has to the workspace (direct or indirect). Possible values are: DIRECT, INDIRECT
    PrincipalId string
    (integer) - The internal ID of the principal (user/sp/group) in Databricks
    PrincipalType string
    (string) - The type of the principal (user/service principal/group). Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    WorkspaceIdentityStatus string
    (string) - The activity status of an identity in a Databricks workspace. Possible values are: ACTIVE, INACTIVE
    ProviderConfig GetWorkspaceIamWorkspaceIdentityDetailV2ProviderConfig
    assignment_type string
    (string) - The type of assignment the principal has to the workspace (direct or indirect). Possible values are: DIRECT, INDIRECT
    principal_id string
    (integer) - The internal ID of the principal (user/sp/group) in Databricks
    principal_type string
    (string) - The type of the principal (user/service principal/group). Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    workspace_identity_status string
    (string) - The activity status of an identity in a Databricks workspace. Possible values are: ACTIVE, INACTIVE
    provider_config object
    assignmentType String
    (string) - The type of assignment the principal has to the workspace (direct or indirect). Possible values are: DIRECT, INDIRECT
    principalId String
    (integer) - The internal ID of the principal (user/sp/group) in Databricks
    principalType String
    (string) - The type of the principal (user/service principal/group). Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    workspaceIdentityStatus String
    (string) - The activity status of an identity in a Databricks workspace. Possible values are: ACTIVE, INACTIVE
    providerConfig GetWorkspaceIamWorkspaceIdentityDetailV2ProviderConfig
    assignmentType string
    (string) - The type of assignment the principal has to the workspace (direct or indirect). Possible values are: DIRECT, INDIRECT
    principalId string
    (integer) - The internal ID of the principal (user/sp/group) in Databricks
    principalType string
    (string) - The type of the principal (user/service principal/group). Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    workspaceIdentityStatus string
    (string) - The activity status of an identity in a Databricks workspace. Possible values are: ACTIVE, INACTIVE
    providerConfig GetWorkspaceIamWorkspaceIdentityDetailV2ProviderConfig
    assignment_type str
    (string) - The type of assignment the principal has to the workspace (direct or indirect). Possible values are: DIRECT, INDIRECT
    principal_id str
    (integer) - The internal ID of the principal (user/sp/group) in Databricks
    principal_type str
    (string) - The type of the principal (user/service principal/group). Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    workspace_identity_status str
    (string) - The activity status of an identity in a Databricks workspace. Possible values are: ACTIVE, INACTIVE
    provider_config GetWorkspaceIamWorkspaceIdentityDetailV2ProviderConfig
    assignmentType String
    (string) - The type of assignment the principal has to the workspace (direct or indirect). Possible values are: DIRECT, INDIRECT
    principalId String
    (integer) - The internal ID of the principal (user/sp/group) in Databricks
    principalType String
    (string) - The type of the principal (user/service principal/group). Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    workspaceIdentityStatus String
    (string) - The activity status of an identity in a Databricks workspace. Possible values are: ACTIVE, INACTIVE
    providerConfig Property Map

    Supporting Types

    GetWorkspaceIamWorkspaceIdentityDetailV2ProviderConfig

    WorkspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    WorkspaceId 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.
    workspaceId String
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId 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.
    workspaceId 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 databricks Terraform Provider.
    databricks logo databricks logo
    Viewing docs for Databricks v1.109.0
    published on Tuesday, Sep 8, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial