1. Registry
  2. Packages
  3. Databricks Provider
  4. API Docs
  5. getAccountIamDirectGroupMembersV2
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 direct members of an account group.

    Example Usage

    Example usage:

    List all direct members of a group.

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const _this = databricks.getAccountIamDirectGroupMembersV2({
        groupId: 123456789,
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    this = databricks.get_account_iam_direct_group_members_v2(group_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.GetAccountIamDirectGroupMembersV2(ctx, &databricks.GetAccountIamDirectGroupMembersV2Args{
    			GroupId: 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.GetAccountIamDirectGroupMembersV2.Invoke(new()
        {
            GroupId = 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.GetAccountIamDirectGroupMembersV2Args;
    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.getAccountIamDirectGroupMembersV2(GetAccountIamDirectGroupMembersV2Args.builder()
                .groupId(123456789)
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: databricks:getAccountIamDirectGroupMembersV2
          arguments:
            groupId: 1.23456789e+08
    
    pulumi {
      required_providers {
        databricks = {
          source = "pulumi/databricks"
        }
      }
    }
    
    data "databricks_getaccountiamdirectgroupmembersv2" "this" {
      group_id = 123456789
    }
    

    Using getAccountIamDirectGroupMembersV2

    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 getAccountIamDirectGroupMembersV2(args: GetAccountIamDirectGroupMembersV2Args, opts?: InvokeOptions): Promise<GetAccountIamDirectGroupMembersV2Result>
    function getAccountIamDirectGroupMembersV2Output(args: GetAccountIamDirectGroupMembersV2OutputArgs, opts?: InvokeOutputOptions): Output<GetAccountIamDirectGroupMembersV2Result>
    def get_account_iam_direct_group_members_v2(group_id: Optional[int] = None,
                                                page_size: Optional[int] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetAccountIamDirectGroupMembersV2Result
    def get_account_iam_direct_group_members_v2_output(group_id: pulumi.Input[Optional[int]] = None,
                                                page_size: pulumi.Input[Optional[int]] = None,
                                                opts: Optional[InvokeOutputOptions] = None) -> Output[GetAccountIamDirectGroupMembersV2Result]
    func GetAccountIamDirectGroupMembersV2(ctx *Context, args *GetAccountIamDirectGroupMembersV2Args, opts ...InvokeOption) (*GetAccountIamDirectGroupMembersV2Result, error)
    func GetAccountIamDirectGroupMembersV2Output(ctx *Context, args *GetAccountIamDirectGroupMembersV2OutputArgs, opts ...InvokeOption) GetAccountIamDirectGroupMembersV2ResultOutput

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

    public static class GetAccountIamDirectGroupMembersV2 
    {
        public static Task<GetAccountIamDirectGroupMembersV2Result> InvokeAsync(GetAccountIamDirectGroupMembersV2Args args, InvokeOptions? opts = null)
        public static Output<GetAccountIamDirectGroupMembersV2Result> Invoke(GetAccountIamDirectGroupMembersV2InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetAccountIamDirectGroupMembersV2Result> Invoke(GetAccountIamDirectGroupMembersV2InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetAccountIamDirectGroupMembersV2Result> getAccountIamDirectGroupMembersV2(GetAccountIamDirectGroupMembersV2Args args, InvokeOptions options)
    public static Output<GetAccountIamDirectGroupMembersV2Result> getAccountIamDirectGroupMembersV2(GetAccountIamDirectGroupMembersV2Args args, InvokeOptions options)
    public static Output<GetAccountIamDirectGroupMembersV2Result> getAccountIamDirectGroupMembersV2(GetAccountIamDirectGroupMembersV2Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: databricks:index/getAccountIamDirectGroupMembersV2:getAccountIamDirectGroupMembersV2
      arguments:
        # arguments dictionary
    data "databricks_get_account_iam_direct_group_members_v2" "name" {
        # arguments
    }

    The following arguments are supported:

    GroupId int
    Required. Internal ID of the group in Databricks whose direct members are being listed
    PageSize int
    The maximum number of members 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
    GroupId int
    Required. Internal ID of the group in Databricks whose direct members are being listed
    PageSize int
    The maximum number of members 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
    group_id number
    Required. Internal ID of the group in Databricks whose direct members are being listed
    page_size number
    The maximum number of members 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
    groupId Integer
    Required. Internal ID of the group in Databricks whose direct members are being listed
    pageSize Integer
    The maximum number of members 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
    groupId number
    Required. Internal ID of the group in Databricks whose direct members are being listed
    pageSize number
    The maximum number of members 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
    group_id int
    Required. Internal ID of the group in Databricks whose direct members are being listed
    page_size int
    The maximum number of members 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
    groupId Number
    Required. Internal ID of the group in Databricks whose direct members are being listed
    pageSize Number
    The maximum number of members 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

    getAccountIamDirectGroupMembersV2 Result

    The following output properties are available:

    DirectGroupMembers List<GetAccountIamDirectGroupMembersV2DirectGroupMember>
    GroupId int
    (integer) - The internal ID of the group this member belongs to
    PageSize int
    DirectGroupMembers []GetAccountIamDirectGroupMembersV2DirectGroupMember
    GroupId int
    (integer) - The internal ID of the group this member belongs to
    PageSize int
    direct_group_members list(object)
    group_id number
    (integer) - The internal ID of the group this member belongs to
    page_size number
    directGroupMembers List<GetAccountIamDirectGroupMembersV2DirectGroupMember>
    groupId Integer
    (integer) - The internal ID of the group this member belongs to
    pageSize Integer
    directGroupMembers GetAccountIamDirectGroupMembersV2DirectGroupMember[]
    groupId number
    (integer) - The internal ID of the group this member belongs to
    pageSize number
    direct_group_members Sequence[GetAccountIamDirectGroupMembersV2DirectGroupMember]
    group_id int
    (integer) - The internal ID of the group this member belongs to
    page_size int
    directGroupMembers List<Property Map>
    groupId Number
    (integer) - The internal ID of the group this member belongs to
    pageSize Number

    Supporting Types

    GetAccountIamDirectGroupMembersV2DirectGroupMember

    DisplayName string
    (string) - Display name of the principal
    ExternalId string
    (string) - The external ID of the principal in Databricks
    GroupId int
    Required. Internal ID of the group in Databricks whose direct members are being listed
    MembershipSource string
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    PrincipalId int
    (integer) - Internal ID of the principal in Databricks
    PrincipalType string
    (string) - The type of the principal (user/service principal/group). Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    DisplayName string
    (string) - Display name of the principal
    ExternalId string
    (string) - The external ID of the principal in Databricks
    GroupId int
    Required. Internal ID of the group in Databricks whose direct members are being listed
    MembershipSource string
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    PrincipalId int
    (integer) - Internal ID of the principal in Databricks
    PrincipalType string
    (string) - The type of the principal (user/service principal/group). Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    display_name string
    (string) - Display name of the principal
    external_id string
    (string) - The external ID of the principal in Databricks
    group_id number
    Required. Internal ID of the group in Databricks whose direct members are being listed
    membership_source string
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    principal_id number
    (integer) - Internal ID of the principal in Databricks
    principal_type string
    (string) - The type of the principal (user/service principal/group). Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    displayName String
    (string) - Display name of the principal
    externalId String
    (string) - The external ID of the principal in Databricks
    groupId Integer
    Required. Internal ID of the group in Databricks whose direct members are being listed
    membershipSource String
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    principalId Integer
    (integer) - Internal ID of the principal in Databricks
    principalType String
    (string) - The type of the principal (user/service principal/group). Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    displayName string
    (string) - Display name of the principal
    externalId string
    (string) - The external ID of the principal in Databricks
    groupId number
    Required. Internal ID of the group in Databricks whose direct members are being listed
    membershipSource string
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    principalId number
    (integer) - Internal ID of the principal in Databricks
    principalType string
    (string) - The type of the principal (user/service principal/group). Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    display_name str
    (string) - Display name of the principal
    external_id str
    (string) - The external ID of the principal in Databricks
    group_id int
    Required. Internal ID of the group in Databricks whose direct members are being listed
    membership_source str
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    principal_id int
    (integer) - Internal ID of the principal in Databricks
    principal_type str
    (string) - The type of the principal (user/service principal/group). Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    displayName String
    (string) - Display name of the principal
    externalId String
    (string) - The external ID of the principal in Databricks
    groupId Number
    Required. Internal ID of the group in Databricks whose direct members are being listed
    membershipSource String
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    principalId Number
    (integer) - Internal ID of the principal in Databricks
    principalType String
    (string) - The type of the principal (user/service principal/group). Possible values are: GROUP, SERVICE_PRINCIPAL, USER

    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