published on Tuesday, Sep 8, 2026 by Pulumi
published on Tuesday, Sep 8, 2026 by Pulumi
Manages a direct membership of a principal (user, service principal, or group) in a group, scoped to a workspace. Creating the resource adds the member; deleting it removes the member. Membership is immutable — changing the group or principal replaces the resource.
Example Usage
Example usage:
Adds a principal as a direct member of a group, using a workspace-scoped
provider. 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.WorkspaceIamDirectGroupMemberV2("this", {
groupId: 123456789,
principalId: "987654321",
});
import pulumi
import pulumi_databricks as databricks
this = databricks.WorkspaceIamDirectGroupMemberV2("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.NewWorkspaceIamDirectGroupMemberV2(ctx, "this", &databricks.WorkspaceIamDirectGroupMemberV2Args{
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.WorkspaceIamDirectGroupMemberV2("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.WorkspaceIamDirectGroupMemberV2;
import com.pulumi.databricks.WorkspaceIamDirectGroupMemberV2Args;
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 WorkspaceIamDirectGroupMemberV2("this", WorkspaceIamDirectGroupMemberV2Args.builder()
.groupId(123456789)
.principalId("987654321")
.build());
}
}
resources:
this:
type: databricks:WorkspaceIamDirectGroupMemberV2
properties:
groupId: 1.23456789e+08
principalId: 9.87654321e+08
pulumi {
required_providers {
databricks = {
source = "pulumi/databricks"
}
}
}
resource "databricks_workspaceiamdirectgroupmemberv2" "this" {
group_id = 123456789
principal_id = 987654321
}
Create WorkspaceIamDirectGroupMemberV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WorkspaceIamDirectGroupMemberV2(name: string, args: WorkspaceIamDirectGroupMemberV2Args, opts?: CustomResourceOptions);@overload
def WorkspaceIamDirectGroupMemberV2(resource_name: str,
args: WorkspaceIamDirectGroupMemberV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def WorkspaceIamDirectGroupMemberV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
principal_id: Optional[str] = None,
group_id: Optional[int] = None,
provider_config: Optional[WorkspaceIamDirectGroupMemberV2ProviderConfigArgs] = None)func NewWorkspaceIamDirectGroupMemberV2(ctx *Context, name string, args WorkspaceIamDirectGroupMemberV2Args, opts ...ResourceOption) (*WorkspaceIamDirectGroupMemberV2, error)public WorkspaceIamDirectGroupMemberV2(string name, WorkspaceIamDirectGroupMemberV2Args args, CustomResourceOptions? opts = null)
public WorkspaceIamDirectGroupMemberV2(String name, WorkspaceIamDirectGroupMemberV2Args args)
public WorkspaceIamDirectGroupMemberV2(String name, WorkspaceIamDirectGroupMemberV2Args args, CustomResourceOptions options)
type: databricks:WorkspaceIamDirectGroupMemberV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "databricks_workspace_iam_direct_group_member_v2" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args WorkspaceIamDirectGroupMemberV2Args
- 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 WorkspaceIamDirectGroupMemberV2Args
- 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 WorkspaceIamDirectGroupMemberV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkspaceIamDirectGroupMemberV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkspaceIamDirectGroupMemberV2Args
- 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 workspaceIamDirectGroupMemberV2Resource = new Databricks.WorkspaceIamDirectGroupMemberV2("workspaceIamDirectGroupMemberV2Resource", new()
{
PrincipalId = "string",
GroupId = 0,
ProviderConfig = new Databricks.Inputs.WorkspaceIamDirectGroupMemberV2ProviderConfigArgs
{
WorkspaceId = "string",
},
});
example, err := databricks.NewWorkspaceIamDirectGroupMemberV2(ctx, "workspaceIamDirectGroupMemberV2Resource", &databricks.WorkspaceIamDirectGroupMemberV2Args{
PrincipalId: pulumi.String("string"),
GroupId: pulumi.Int(0),
ProviderConfig: &databricks.WorkspaceIamDirectGroupMemberV2ProviderConfigArgs{
WorkspaceId: pulumi.String("string"),
},
})
resource "databricks_workspace_iam_direct_group_member_v2" "workspaceIamDirectGroupMemberV2Resource" {
lifecycle {
create_before_destroy = true
}
principal_id = "string"
group_id = 0
provider_config = {
workspace_id = "string"
}
}
var workspaceIamDirectGroupMemberV2Resource = new WorkspaceIamDirectGroupMemberV2("workspaceIamDirectGroupMemberV2Resource", WorkspaceIamDirectGroupMemberV2Args.builder()
.principalId("string")
.groupId(0)
.providerConfig(WorkspaceIamDirectGroupMemberV2ProviderConfigArgs.builder()
.workspaceId("string")
.build())
.build());
workspace_iam_direct_group_member_v2_resource = databricks.WorkspaceIamDirectGroupMemberV2("workspaceIamDirectGroupMemberV2Resource",
principal_id="string",
group_id=0,
provider_config={
"workspace_id": "string",
})
const workspaceIamDirectGroupMemberV2Resource = new databricks.WorkspaceIamDirectGroupMemberV2("workspaceIamDirectGroupMemberV2Resource", {
principalId: "string",
groupId: 0,
providerConfig: {
workspaceId: "string",
},
});
type: databricks:WorkspaceIamDirectGroupMemberV2
properties:
groupId: 0
principalId: string
providerConfig:
workspaceId: string
WorkspaceIamDirectGroupMemberV2 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 WorkspaceIamDirectGroupMemberV2 resource accepts the following input properties:
- Principal
Id string - Internal ID of the principal in Databricks
- Group
Id int - (integer) - The internal ID of the group this member belongs to
- Provider
Config WorkspaceIam Direct Group Member V2Provider Config - Configure the provider for management through account provider.
- Principal
Id string - Internal ID of the principal in Databricks
- Group
Id int - (integer) - The internal ID of the group this member belongs to
- Provider
Config WorkspaceIam Direct Group Member V2Provider Config Args - Configure the provider for management through account provider.
- principal_
id string - Internal ID of the principal in Databricks
- group_
id number - (integer) - The internal ID of the group this member belongs to
- provider_
config object - Configure the provider for management through account provider.
- principal
Id String - Internal ID of the principal in Databricks
- group
Id Integer - (integer) - The internal ID of the group this member belongs to
- provider
Config WorkspaceIam Direct Group Member V2Provider Config - Configure the provider for management through account provider.
- principal
Id string - Internal ID of the principal in Databricks
- group
Id number - (integer) - The internal ID of the group this member belongs to
- provider
Config WorkspaceIam Direct Group Member V2Provider Config - Configure the provider for management through account provider.
- principal_
id str - Internal ID of the principal in Databricks
- group_
id int - (integer) - The internal ID of the group this member belongs to
- provider_
config WorkspaceIam Direct Group Member V2Provider Config Args - Configure the provider for management through account provider.
- principal
Id String - Internal ID of the principal in Databricks
- group
Id Number - (integer) - The internal ID of the group this member belongs to
- provider
Config Property Map - Configure the provider for management through account provider.
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkspaceIamDirectGroupMemberV2 resource produces the following output properties:
- 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
- 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
- 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
- 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
- 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
- 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
- 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
Look up Existing WorkspaceIamDirectGroupMemberV2 Resource
Get an existing WorkspaceIamDirectGroupMemberV2 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?: WorkspaceIamDirectGroupMemberV2State, opts?: CustomResourceOptions): WorkspaceIamDirectGroupMemberV2@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,
provider_config: Optional[WorkspaceIamDirectGroupMemberV2ProviderConfigArgs] = None) -> WorkspaceIamDirectGroupMemberV2func GetWorkspaceIamDirectGroupMemberV2(ctx *Context, name string, id IDInput, state *WorkspaceIamDirectGroupMemberV2State, opts ...ResourceOption) (*WorkspaceIamDirectGroupMemberV2, error)public static WorkspaceIamDirectGroupMemberV2 Get(string name, Input<string> id, WorkspaceIamDirectGroupMemberV2State? state, CustomResourceOptions? opts = null)public static WorkspaceIamDirectGroupMemberV2 get(String name, Output<String> id, WorkspaceIamDirectGroupMemberV2State state, CustomResourceOptions options)resources: _: type: databricks:WorkspaceIamDirectGroupMemberV2 get: id: ${id}import {
to = databricks_workspace_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.
- Display
Name string - (string) - Display name of the principal
- External
Id string - (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 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 - Provider
Config WorkspaceIam Direct Group Member V2Provider Config - Configure the provider for management through account provider.
- Display
Name string - (string) - Display name of the principal
- External
Id string - (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 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 - Provider
Config WorkspaceIam Direct Group Member V2Provider Config Args - Configure the provider for management through account provider.
- 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 - provider_
config object - Configure the provider for management through account provider.
- display
Name String - (string) - Display name of the principal
- external
Id String - (string) - The external ID of the principal in Databricks
- group
Id Integer - (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 - provider
Config WorkspaceIam Direct Group Member V2Provider Config - Configure the provider for management through account provider.
- 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 - provider
Config WorkspaceIam Direct Group Member V2Provider Config - Configure the provider for management through account provider.
- 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 - provider_
config WorkspaceIam Direct Group Member V2Provider Config Args - Configure the provider for management through account provider.
- 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 - provider
Config Property Map - Configure the provider for management through account provider.
Supporting Types
WorkspaceIamDirectGroupMemberV2ProviderConfig, WorkspaceIamDirectGroupMemberV2ProviderConfigArgs
- Workspace
Id 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.
- workspace_
id 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.
- workspace
Id 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.
- workspace
Id 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
databricksTerraform Provider.
published on Tuesday, Sep 8, 2026 by Pulumi