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

    Using getAccountIamWorkspaceAssignmentsV2

    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 getAccountIamWorkspaceAssignmentsV2(args: GetAccountIamWorkspaceAssignmentsV2Args, opts?: InvokeOptions): Promise<GetAccountIamWorkspaceAssignmentsV2Result>
    function getAccountIamWorkspaceAssignmentsV2Output(args: GetAccountIamWorkspaceAssignmentsV2OutputArgs, opts?: InvokeOutputOptions): Output<GetAccountIamWorkspaceAssignmentsV2Result>
    def get_account_iam_workspace_assignments_v2(page_size: Optional[int] = None,
                                                 workspace_id: Optional[str] = None,
                                                 opts: Optional[InvokeOptions] = None) -> GetAccountIamWorkspaceAssignmentsV2Result
    def get_account_iam_workspace_assignments_v2_output(page_size: pulumi.Input[Optional[int]] = None,
                                                 workspace_id: pulumi.Input[Optional[str]] = None,
                                                 opts: Optional[InvokeOutputOptions] = None) -> Output[GetAccountIamWorkspaceAssignmentsV2Result]
    func GetAccountIamWorkspaceAssignmentsV2(ctx *Context, args *GetAccountIamWorkspaceAssignmentsV2Args, opts ...InvokeOption) (*GetAccountIamWorkspaceAssignmentsV2Result, error)
    func GetAccountIamWorkspaceAssignmentsV2Output(ctx *Context, args *GetAccountIamWorkspaceAssignmentsV2OutputArgs, opts ...InvokeOption) GetAccountIamWorkspaceAssignmentsV2ResultOutput

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

    public static class GetAccountIamWorkspaceAssignmentsV2 
    {
        public static Task<GetAccountIamWorkspaceAssignmentsV2Result> InvokeAsync(GetAccountIamWorkspaceAssignmentsV2Args args, InvokeOptions? opts = null)
        public static Output<GetAccountIamWorkspaceAssignmentsV2Result> Invoke(GetAccountIamWorkspaceAssignmentsV2InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetAccountIamWorkspaceAssignmentsV2Result> Invoke(GetAccountIamWorkspaceAssignmentsV2InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetAccountIamWorkspaceAssignmentsV2Result> getAccountIamWorkspaceAssignmentsV2(GetAccountIamWorkspaceAssignmentsV2Args args, InvokeOptions options)
    public static Output<GetAccountIamWorkspaceAssignmentsV2Result> getAccountIamWorkspaceAssignmentsV2(GetAccountIamWorkspaceAssignmentsV2Args args, InvokeOptions options)
    public static Output<GetAccountIamWorkspaceAssignmentsV2Result> getAccountIamWorkspaceAssignmentsV2(GetAccountIamWorkspaceAssignmentsV2Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: databricks:index/getAccountIamWorkspaceAssignmentsV2:getAccountIamWorkspaceAssignmentsV2
      arguments:
        # arguments dictionary
    data "databricks_get_account_iam_workspace_assignments_v2" "name" {
        # arguments
    }

    The following arguments are supported:

    WorkspaceId string
    Required. The workspace ID for which the workspace assignments are being fetched
    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
    WorkspaceId string
    Required. The workspace ID for which the workspace assignments are being fetched
    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
    workspace_id string
    Required. The workspace ID for which the workspace assignments are being fetched
    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
    workspaceId String
    Required. The workspace ID for which the workspace assignments are being fetched
    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
    workspaceId string
    Required. The workspace ID for which the workspace assignments are being fetched
    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
    workspace_id str
    Required. The workspace ID for which the workspace assignments are being fetched
    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
    workspaceId String
    Required. The workspace ID for which the workspace assignments are being fetched
    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

    getAccountIamWorkspaceAssignmentsV2 Result

    The following output properties are available:

    WorkspaceAssignments List<GetAccountIamWorkspaceAssignmentsV2WorkspaceAssignment>
    WorkspaceId string
    (integer) - The workspace ID where the principal is assigned
    PageSize int
    WorkspaceAssignments []GetAccountIamWorkspaceAssignmentsV2WorkspaceAssignment
    WorkspaceId string
    (integer) - The workspace ID where the principal is assigned
    PageSize int
    workspace_assignments list(object)
    workspace_id string
    (integer) - The workspace ID where the principal is assigned
    page_size number
    workspaceAssignments List<GetAccountIamWorkspaceAssignmentsV2WorkspaceAssignment>
    workspaceId String
    (integer) - The workspace ID where the principal is assigned
    pageSize Integer
    workspaceAssignments GetAccountIamWorkspaceAssignmentsV2WorkspaceAssignment[]
    workspaceId string
    (integer) - The workspace ID where the principal is assigned
    pageSize number
    workspaceAssignments List<Property Map>
    workspaceId String
    (integer) - The workspace ID where the principal is assigned
    pageSize Number

    Supporting Types

    GetAccountIamWorkspaceAssignmentsV2WorkspaceAssignment

    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
    Required. The workspace ID for which the workspace assignments are being fetched
    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
    Required. The workspace ID for which the workspace assignments are being fetched
    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
    Required. The workspace ID for which the workspace assignments are being fetched
    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
    Required. The workspace ID for which the workspace assignments are being fetched
    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
    Required. The workspace ID for which the workspace assignments are being fetched
    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
    Required. The workspace ID for which the workspace assignments are being fetched
    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
    Required. The workspace ID for which the workspace assignments are being fetched

    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