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

    Manages a direct membership of a principal (user, service principal, or group) in an account group. Creating the resource adds the member; deleting it removes the member. Membership is immutable — changing the group or principal replaces the resource. Only directly-assigned, Databricks-managed memberships are managed here; memberships inherited through the identity provider are read-only.

    Example Usage

    Example usage:

    Adds a principal as a direct member of a group. groupId and principalId are the internal Databricks IDs of the group and the member. Membership is immutable — changing either field replaces the resource.

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const _this = new databricks.AccountIamDirectGroupMemberV2("this", {
        groupId: 123456789,
        principalId: "987654321",
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    this = databricks.AccountIamDirectGroupMemberV2("this",
        group_id=123456789,
        principal_id="987654321")
    
    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.NewAccountIamDirectGroupMemberV2(ctx, "this", &databricks.AccountIamDirectGroupMemberV2Args{
    			GroupId:     pulumi.Int(123456789),
    			PrincipalId: pulumi.String("987654321"),
    		})
    		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 = new Databricks.AccountIamDirectGroupMemberV2("this", new()
        {
            GroupId = 123456789,
            PrincipalId = "987654321",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.AccountIamDirectGroupMemberV2;
    import com.pulumi.databricks.AccountIamDirectGroupMemberV2Args;
    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) {
            var this_ = new AccountIamDirectGroupMemberV2("this", AccountIamDirectGroupMemberV2Args.builder()
                .groupId(123456789)
                .principalId("987654321")
                .build());
    
        }
    }
    
    resources:
      this:
        type: databricks:AccountIamDirectGroupMemberV2
        properties:
          groupId: 1.23456789e+08
          principalId: 9.87654321e+08
    
    pulumi {
      required_providers {
        databricks = {
          source = "pulumi/databricks"
        }
      }
    }
    
    resource "databricks_accountiamdirectgroupmemberv2" "this" {
      group_id     = 123456789
      principal_id = 987654321
    }
    

    Create AccountIamDirectGroupMemberV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AccountIamDirectGroupMemberV2(name: string, args: AccountIamDirectGroupMemberV2Args, opts?: CustomResourceOptions);
    @overload
    def AccountIamDirectGroupMemberV2(resource_name: str,
                                      args: AccountIamDirectGroupMemberV2Args,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccountIamDirectGroupMemberV2(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      principal_id: Optional[str] = None,
                                      group_id: Optional[int] = None)
    func NewAccountIamDirectGroupMemberV2(ctx *Context, name string, args AccountIamDirectGroupMemberV2Args, opts ...ResourceOption) (*AccountIamDirectGroupMemberV2, error)
    public AccountIamDirectGroupMemberV2(string name, AccountIamDirectGroupMemberV2Args args, CustomResourceOptions? opts = null)
    public AccountIamDirectGroupMemberV2(String name, AccountIamDirectGroupMemberV2Args args)
    public AccountIamDirectGroupMemberV2(String name, AccountIamDirectGroupMemberV2Args args, CustomResourceOptions options)
    
    type: databricks:AccountIamDirectGroupMemberV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "databricks_account_iam_direct_group_member_v2" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AccountIamDirectGroupMemberV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AccountIamDirectGroupMemberV2Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AccountIamDirectGroupMemberV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountIamDirectGroupMemberV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountIamDirectGroupMemberV2Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var accountIamDirectGroupMemberV2Resource = new Databricks.AccountIamDirectGroupMemberV2("accountIamDirectGroupMemberV2Resource", new()
    {
        PrincipalId = "string",
        GroupId = 0,
    });
    
    example, err := databricks.NewAccountIamDirectGroupMemberV2(ctx, "accountIamDirectGroupMemberV2Resource", &databricks.AccountIamDirectGroupMemberV2Args{
    	PrincipalId: pulumi.String("string"),
    	GroupId:     pulumi.Int(0),
    })
    
    resource "databricks_account_iam_direct_group_member_v2" "accountIamDirectGroupMemberV2Resource" {
      lifecycle {
        create_before_destroy = true
      }
      principal_id = "string"
      group_id     = 0
    }
    
    var accountIamDirectGroupMemberV2Resource = new AccountIamDirectGroupMemberV2("accountIamDirectGroupMemberV2Resource", AccountIamDirectGroupMemberV2Args.builder()
        .principalId("string")
        .groupId(0)
        .build());
    
    account_iam_direct_group_member_v2_resource = databricks.AccountIamDirectGroupMemberV2("accountIamDirectGroupMemberV2Resource",
        principal_id="string",
        group_id=0)
    
    const accountIamDirectGroupMemberV2Resource = new databricks.AccountIamDirectGroupMemberV2("accountIamDirectGroupMemberV2Resource", {
        principalId: "string",
        groupId: 0,
    });
    
    type: databricks:AccountIamDirectGroupMemberV2
    properties:
        groupId: 0
        principalId: string
    

    AccountIamDirectGroupMemberV2 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AccountIamDirectGroupMemberV2 resource accepts the following input properties:

    PrincipalId string
    Internal ID of the principal in Databricks
    GroupId int
    (integer) - The internal ID of the group this member belongs to
    PrincipalId string
    Internal ID of the principal in Databricks
    GroupId int
    (integer) - The internal ID of the group this member belongs to
    principal_id string
    Internal ID of the principal in Databricks
    group_id number
    (integer) - The internal ID of the group this member belongs to
    principalId String
    Internal ID of the principal in Databricks
    groupId Integer
    (integer) - The internal ID of the group this member belongs to
    principalId string
    Internal ID of the principal in Databricks
    groupId number
    (integer) - The internal ID of the group this member belongs to
    principal_id str
    Internal ID of the principal in Databricks
    group_id int
    (integer) - The internal ID of the group this member belongs to
    principalId String
    Internal ID of the principal in Databricks
    groupId Number
    (integer) - The internal ID of the group this member belongs to

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AccountIamDirectGroupMemberV2 resource produces the following output properties:

    DisplayName string
    (string) - Display name of the principal
    ExternalId string
    (string) - The external ID of the principal in Databricks
    Id string
    The provider-assigned unique ID for this managed resource.
    MembershipSource string
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    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
    Id string
    The provider-assigned unique ID for this managed resource.
    MembershipSource string
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    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
    id string
    The provider-assigned unique ID for this managed resource.
    membership_source string
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    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
    id String
    The provider-assigned unique ID for this managed resource.
    membershipSource String
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    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
    id string
    The provider-assigned unique ID for this managed resource.
    membershipSource string
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    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
    id str
    The provider-assigned unique ID for this managed resource.
    membership_source str
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    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
    id String
    The provider-assigned unique ID for this managed resource.
    membershipSource String
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    principalType String
    (string) - The type of the principal (user/service principal/group). Possible values are: GROUP, SERVICE_PRINCIPAL, USER

    Look up Existing AccountIamDirectGroupMemberV2 Resource

    Get an existing AccountIamDirectGroupMemberV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AccountIamDirectGroupMemberV2State, opts?: CustomResourceOptions): AccountIamDirectGroupMemberV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            display_name: Optional[str] = None,
            external_id: Optional[str] = None,
            group_id: Optional[int] = None,
            membership_source: Optional[str] = None,
            principal_id: Optional[str] = None,
            principal_type: Optional[str] = None) -> AccountIamDirectGroupMemberV2
    func GetAccountIamDirectGroupMemberV2(ctx *Context, name string, id IDInput, state *AccountIamDirectGroupMemberV2State, opts ...ResourceOption) (*AccountIamDirectGroupMemberV2, error)
    public static AccountIamDirectGroupMemberV2 Get(string name, Input<string> id, AccountIamDirectGroupMemberV2State? state, CustomResourceOptions? opts = null)
    public static AccountIamDirectGroupMemberV2 get(String name, Output<String> id, AccountIamDirectGroupMemberV2State state, CustomResourceOptions options)
    resources:  _:    type: databricks:AccountIamDirectGroupMemberV2    get:      id: ${id}
    import {
      to = databricks_account_iam_direct_group_member_v2.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DisplayName string
    (string) - Display name of the principal
    ExternalId string
    (string) - The external ID of the principal in Databricks
    GroupId int
    (integer) - The internal ID of the group this member belongs to
    MembershipSource string
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    PrincipalId string
    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
    (integer) - The internal ID of the group this member belongs to
    MembershipSource string
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    PrincipalId string
    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
    (integer) - The internal ID of the group this member belongs to
    membership_source string
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    principal_id string
    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
    (integer) - The internal ID of the group this member belongs to
    membershipSource String
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    principalId String
    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
    (integer) - The internal ID of the group this member belongs to
    membershipSource string
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    principalId string
    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
    (integer) - The internal ID of the group this member belongs to
    membership_source str
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    principal_id str
    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
    (integer) - The internal ID of the group this member belongs to
    membershipSource String
    (string) - The source of group membership (internal or from identity provider). Possible values are: IDENTITY_PROVIDER, INTERNAL
    principalId String
    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