1. Registry
  2. Packages
  3. Databricks Provider
  4. API Docs
  5. getWorkspaceIamWorkspaceAssignmentsV2
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

    Lists the principal assignments for the workspace, using a workspace-scoped provider.

    Using getWorkspaceIamWorkspaceAssignmentsV2

    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 getWorkspaceIamWorkspaceAssignmentsV2(args: GetWorkspaceIamWorkspaceAssignmentsV2Args, opts?: InvokeOptions): Promise<GetWorkspaceIamWorkspaceAssignmentsV2Result>
    function getWorkspaceIamWorkspaceAssignmentsV2Output(args: GetWorkspaceIamWorkspaceAssignmentsV2OutputArgs, opts?: InvokeOutputOptions): Output<GetWorkspaceIamWorkspaceAssignmentsV2Result>
    def get_workspace_iam_workspace_assignments_v2(page_size: Optional[int] = None,
                                                   provider_config: Optional[GetWorkspaceIamWorkspaceAssignmentsV2ProviderConfig] = None,
                                                   opts: Optional[InvokeOptions] = None) -> GetWorkspaceIamWorkspaceAssignmentsV2Result
    def get_workspace_iam_workspace_assignments_v2_output(page_size: pulumi.Input[Optional[int]] = None,
                                                   provider_config: pulumi.Input[Optional[GetWorkspaceIamWorkspaceAssignmentsV2ProviderConfigArgs]] = None,
                                                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetWorkspaceIamWorkspaceAssignmentsV2Result]
    func GetWorkspaceIamWorkspaceAssignmentsV2(ctx *Context, args *GetWorkspaceIamWorkspaceAssignmentsV2Args, opts ...InvokeOption) (*GetWorkspaceIamWorkspaceAssignmentsV2Result, error)
    func GetWorkspaceIamWorkspaceAssignmentsV2Output(ctx *Context, args *GetWorkspaceIamWorkspaceAssignmentsV2OutputArgs, opts ...InvokeOption) GetWorkspaceIamWorkspaceAssignmentsV2ResultOutput

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

    public static class GetWorkspaceIamWorkspaceAssignmentsV2 
    {
        public static Task<GetWorkspaceIamWorkspaceAssignmentsV2Result> InvokeAsync(GetWorkspaceIamWorkspaceAssignmentsV2Args args, InvokeOptions? opts = null)
        public static Output<GetWorkspaceIamWorkspaceAssignmentsV2Result> Invoke(GetWorkspaceIamWorkspaceAssignmentsV2InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkspaceIamWorkspaceAssignmentsV2Result> Invoke(GetWorkspaceIamWorkspaceAssignmentsV2InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetWorkspaceIamWorkspaceAssignmentsV2Result> getWorkspaceIamWorkspaceAssignmentsV2(GetWorkspaceIamWorkspaceAssignmentsV2Args args, InvokeOptions options)
    public static Output<GetWorkspaceIamWorkspaceAssignmentsV2Result> getWorkspaceIamWorkspaceAssignmentsV2(GetWorkspaceIamWorkspaceAssignmentsV2Args args, InvokeOptions options)
    public static Output<GetWorkspaceIamWorkspaceAssignmentsV2Result> getWorkspaceIamWorkspaceAssignmentsV2(GetWorkspaceIamWorkspaceAssignmentsV2Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: databricks:index/getWorkspaceIamWorkspaceAssignmentsV2:getWorkspaceIamWorkspaceAssignmentsV2
      arguments:
        # arguments dictionary
    data "databricks_get_workspace_iam_workspace_assignments_v2" "name" {
        # arguments
    }

    The following arguments are supported:

    PageSize int
    The maximum number of workspace assignments to return. The service may return fewer than this value. If not provided, defaults to 1000, which is also the maximum allowed. Requests for more than the maximum are clamped to 1000
    ProviderConfig GetWorkspaceIamWorkspaceAssignmentsV2ProviderConfig
    Configure the provider for management through account provider.
    PageSize int
    The maximum number of workspace assignments to return. The service may return fewer than this value. If not provided, defaults to 1000, which is also the maximum allowed. Requests for more than the maximum are clamped to 1000
    ProviderConfig GetWorkspaceIamWorkspaceAssignmentsV2ProviderConfig
    Configure the provider for management through account provider.
    page_size number
    The maximum number of workspace assignments to return. The service may return fewer than this value. If not provided, defaults to 1000, which is also the maximum allowed. Requests for more than the maximum are clamped to 1000
    provider_config object
    Configure the provider for management through account provider.
    pageSize Integer
    The maximum number of workspace assignments to return. The service may return fewer than this value. If not provided, defaults to 1000, which is also the maximum allowed. Requests for more than the maximum are clamped to 1000
    providerConfig GetWorkspaceIamWorkspaceAssignmentsV2ProviderConfig
    Configure the provider for management through account provider.
    pageSize number
    The maximum number of workspace assignments to return. The service may return fewer than this value. If not provided, defaults to 1000, which is also the maximum allowed. Requests for more than the maximum are clamped to 1000
    providerConfig GetWorkspaceIamWorkspaceAssignmentsV2ProviderConfig
    Configure the provider for management through account provider.
    page_size int
    The maximum number of workspace assignments to return. The service may return fewer than this value. If not provided, defaults to 1000, which is also the maximum allowed. Requests for more than the maximum are clamped to 1000
    provider_config GetWorkspaceIamWorkspaceAssignmentsV2ProviderConfig
    Configure the provider for management through account provider.
    pageSize Number
    The maximum number of workspace assignments to return. The service may return fewer than this value. If not provided, defaults to 1000, which is also the maximum allowed. Requests for more than the maximum are clamped to 1000
    providerConfig Property Map
    Configure the provider for management through account provider.

    getWorkspaceIamWorkspaceAssignmentsV2 Result

    The following output properties are available:

    Supporting Types

    GetWorkspaceIamWorkspaceAssignmentsV2ProviderConfig

    WorkspaceId string
    (integer) - The workspace ID where the principal is assigned
    WorkspaceId string
    (integer) - The workspace ID where the principal is assigned
    workspace_id string
    (integer) - The workspace ID where the principal is assigned
    workspaceId String
    (integer) - The workspace ID where the principal is assigned
    workspaceId string
    (integer) - The workspace ID where the principal is assigned
    workspace_id str
    (integer) - The workspace ID where the principal is assigned
    workspaceId String
    (integer) - The workspace ID where the principal is assigned

    GetWorkspaceIamWorkspaceAssignmentsV2WorkspaceAssignment

    AccountId string
    (string) - The account ID parent of the workspace where the principal is assigned
    EffectiveEntitlements List<string>
    (list of string) - Every entitlement the principal holds in this workspace, whether granted directly or through group membership. Get responses populate this field. List responses leave it empty
    Entitlements List<string>
    (list of string) - Entitlements granted directly to the principal on this workspace. This is the only client-settable field. Create and update manage exactly this set, including entitlements the principal also holds through a group. List responses leave this field empty. Get a single principal to read its entitlements
    PrincipalId int
    (integer) - The internal ID of the principal (user/sp/group) in Databricks
    PrincipalType string
    (string) - The type of the principal (user/service principal/group) that is assigned. Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    WorkspaceId int
    (integer) - The workspace ID where the principal is assigned
    ProviderConfig GetWorkspaceIamWorkspaceAssignmentsV2WorkspaceAssignmentProviderConfig
    Configure the provider for management through account provider.
    AccountId string
    (string) - The account ID parent of the workspace where the principal is assigned
    EffectiveEntitlements []string
    (list of string) - Every entitlement the principal holds in this workspace, whether granted directly or through group membership. Get responses populate this field. List responses leave it empty
    Entitlements []string
    (list of string) - Entitlements granted directly to the principal on this workspace. This is the only client-settable field. Create and update manage exactly this set, including entitlements the principal also holds through a group. List responses leave this field empty. Get a single principal to read its entitlements
    PrincipalId int
    (integer) - The internal ID of the principal (user/sp/group) in Databricks
    PrincipalType string
    (string) - The type of the principal (user/service principal/group) that is assigned. Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    WorkspaceId int
    (integer) - The workspace ID where the principal is assigned
    ProviderConfig GetWorkspaceIamWorkspaceAssignmentsV2WorkspaceAssignmentProviderConfig
    Configure the provider for management through account provider.
    account_id string
    (string) - The account ID parent of the workspace where the principal is assigned
    effective_entitlements list(string)
    (list of string) - Every entitlement the principal holds in this workspace, whether granted directly or through group membership. Get responses populate this field. List responses leave it empty
    entitlements list(string)
    (list of string) - Entitlements granted directly to the principal on this workspace. This is the only client-settable field. Create and update manage exactly this set, including entitlements the principal also holds through a group. List responses leave this field empty. Get a single principal to read its entitlements
    principal_id number
    (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) that is assigned. Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    workspace_id number
    (integer) - The workspace ID where the principal is assigned
    provider_config object
    Configure the provider for management through account provider.
    accountId String
    (string) - The account ID parent of the workspace where the principal is assigned
    effectiveEntitlements List<String>
    (list of string) - Every entitlement the principal holds in this workspace, whether granted directly or through group membership. Get responses populate this field. List responses leave it empty
    entitlements List<String>
    (list of string) - Entitlements granted directly to the principal on this workspace. This is the only client-settable field. Create and update manage exactly this set, including entitlements the principal also holds through a group. List responses leave this field empty. Get a single principal to read its entitlements
    principalId Integer
    (integer) - The internal ID of the principal (user/sp/group) in Databricks
    principalType String
    (string) - The type of the principal (user/service principal/group) that is assigned. Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    workspaceId Integer
    (integer) - The workspace ID where the principal is assigned
    providerConfig GetWorkspaceIamWorkspaceAssignmentsV2WorkspaceAssignmentProviderConfig
    Configure the provider for management through account provider.
    accountId string
    (string) - The account ID parent of the workspace where the principal is assigned
    effectiveEntitlements string[]
    (list of string) - Every entitlement the principal holds in this workspace, whether granted directly or through group membership. Get responses populate this field. List responses leave it empty
    entitlements string[]
    (list of string) - Entitlements granted directly to the principal on this workspace. This is the only client-settable field. Create and update manage exactly this set, including entitlements the principal also holds through a group. List responses leave this field empty. Get a single principal to read its entitlements
    principalId number
    (integer) - The internal ID of the principal (user/sp/group) in Databricks
    principalType string
    (string) - The type of the principal (user/service principal/group) that is assigned. Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    workspaceId number
    (integer) - The workspace ID where the principal is assigned
    providerConfig GetWorkspaceIamWorkspaceAssignmentsV2WorkspaceAssignmentProviderConfig
    Configure the provider for management through account provider.
    account_id str
    (string) - The account ID parent of the workspace where the principal is assigned
    effective_entitlements Sequence[str]
    (list of string) - Every entitlement the principal holds in this workspace, whether granted directly or through group membership. Get responses populate this field. List responses leave it empty
    entitlements Sequence[str]
    (list of string) - Entitlements granted directly to the principal on this workspace. This is the only client-settable field. Create and update manage exactly this set, including entitlements the principal also holds through a group. List responses leave this field empty. Get a single principal to read its entitlements
    principal_id int
    (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) that is assigned. Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    workspace_id int
    (integer) - The workspace ID where the principal is assigned
    provider_config GetWorkspaceIamWorkspaceAssignmentsV2WorkspaceAssignmentProviderConfig
    Configure the provider for management through account provider.
    accountId String
    (string) - The account ID parent of the workspace where the principal is assigned
    effectiveEntitlements List<String>
    (list of string) - Every entitlement the principal holds in this workspace, whether granted directly or through group membership. Get responses populate this field. List responses leave it empty
    entitlements List<String>
    (list of string) - Entitlements granted directly to the principal on this workspace. This is the only client-settable field. Create and update manage exactly this set, including entitlements the principal also holds through a group. List responses leave this field empty. Get a single principal to read its entitlements
    principalId Number
    (integer) - The internal ID of the principal (user/sp/group) in Databricks
    principalType String
    (string) - The type of the principal (user/service principal/group) that is assigned. Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    workspaceId Number
    (integer) - The workspace ID where the principal is assigned
    providerConfig Property Map
    Configure the provider for management through account provider.

    GetWorkspaceIamWorkspaceAssignmentsV2WorkspaceAssignmentProviderConfig

    WorkspaceId string
    (integer) - The workspace ID where the principal is assigned
    WorkspaceId string
    (integer) - The workspace ID where the principal is assigned
    workspace_id string
    (integer) - The workspace ID where the principal is assigned
    workspaceId String
    (integer) - The workspace ID where the principal is assigned
    workspaceId string
    (integer) - The workspace ID where the principal is assigned
    workspace_id str
    (integer) - The workspace ID where the principal is assigned
    workspaceId String
    (integer) - The workspace ID where the principal is assigned

    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