Manage GCP Dataplex Entry Group IAM Access

The gcp:dataplex/entryGroupIamMember:EntryGroupIamMember resource, part of the Pulumi GCP provider, grants IAM permissions on Dataplex EntryGroup resources by adding individual members to roles. This guide focuses on three approaches: single-member grants, multi-member bindings, and full policy replacement.

Three related resources manage EntryGroup IAM: EntryGroupIamMember adds one member non-authoritatively, EntryGroupIamBinding manages all members for a role authoritatively, and EntryGroupIamPolicy replaces the entire policy. Mixing Policy with Binding or Member causes conflicts. The examples are intentionally small. Combine them with your own EntryGroup resources and organizational IAM structure.

Grant a role to a single member

Most IAM configurations add one user or service account to a role, preserving existing assignments while expanding access incrementally.

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const member = new gcp.dataplex.EntryGroupIamMember("member", {
    project: testEntryGroupBasic.project,
    location: testEntryGroupBasic.location,
    entryGroupId: testEntryGroupBasic.entryGroupId,
    role: "roles/viewer",
    member: "user:jane@example.com",
});
import pulumi
import pulumi_gcp as gcp

member = gcp.dataplex.EntryGroupIamMember("member",
    project=test_entry_group_basic["project"],
    location=test_entry_group_basic["location"],
    entry_group_id=test_entry_group_basic["entryGroupId"],
    role="roles/viewer",
    member="user:jane@example.com")
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/dataplex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dataplex.NewEntryGroupIamMember(ctx, "member", &dataplex.EntryGroupIamMemberArgs{
			Project:      pulumi.Any(testEntryGroupBasic.Project),
			Location:     pulumi.Any(testEntryGroupBasic.Location),
			EntryGroupId: pulumi.Any(testEntryGroupBasic.EntryGroupId),
			Role:         pulumi.String("roles/viewer"),
			Member:       pulumi.String("user:jane@example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var member = new Gcp.DataPlex.EntryGroupIamMember("member", new()
    {
        Project = testEntryGroupBasic.Project,
        Location = testEntryGroupBasic.Location,
        EntryGroupId = testEntryGroupBasic.EntryGroupId,
        Role = "roles/viewer",
        Member = "user:jane@example.com",
    });

});
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataplex.EntryGroupIamMember;
import com.pulumi.gcp.dataplex.EntryGroupIamMemberArgs;
import java.util.List;
import java.util.ArrayList;
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 member = new EntryGroupIamMember("member", EntryGroupIamMemberArgs.builder()
            .project(testEntryGroupBasic.project())
            .location(testEntryGroupBasic.location())
            .entryGroupId(testEntryGroupBasic.entryGroupId())
            .role("roles/viewer")
            .member("user:jane@example.com")
            .build());

    }
}
resources:
  member:
    type: gcp:dataplex:EntryGroupIamMember
    properties:
      project: ${testEntryGroupBasic.project}
      location: ${testEntryGroupBasic.location}
      entryGroupId: ${testEntryGroupBasic.entryGroupId}
      role: roles/viewer
      member: user:jane@example.com

The member property identifies who receives access using formats like “user:jane@example.com” or “serviceAccount:app@project.iam.gserviceaccount.com”. The role property specifies the permission set to grant. This resource is non-authoritative: it adds the member without removing others already assigned to the role.

Grant a role to multiple members at once

When several users or service accounts need identical permissions, binding them together ensures they’re managed as a group.

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const binding = new gcp.dataplex.EntryGroupIamBinding("binding", {
    project: testEntryGroupBasic.project,
    location: testEntryGroupBasic.location,
    entryGroupId: testEntryGroupBasic.entryGroupId,
    role: "roles/viewer",
    members: ["user:jane@example.com"],
});
import pulumi
import pulumi_gcp as gcp

binding = gcp.dataplex.EntryGroupIamBinding("binding",
    project=test_entry_group_basic["project"],
    location=test_entry_group_basic["location"],
    entry_group_id=test_entry_group_basic["entryGroupId"],
    role="roles/viewer",
    members=["user:jane@example.com"])
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/dataplex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dataplex.NewEntryGroupIamBinding(ctx, "binding", &dataplex.EntryGroupIamBindingArgs{
			Project:      pulumi.Any(testEntryGroupBasic.Project),
			Location:     pulumi.Any(testEntryGroupBasic.Location),
			EntryGroupId: pulumi.Any(testEntryGroupBasic.EntryGroupId),
			Role:         pulumi.String("roles/viewer"),
			Members: pulumi.StringArray{
				pulumi.String("user:jane@example.com"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var binding = new Gcp.DataPlex.EntryGroupIamBinding("binding", new()
    {
        Project = testEntryGroupBasic.Project,
        Location = testEntryGroupBasic.Location,
        EntryGroupId = testEntryGroupBasic.EntryGroupId,
        Role = "roles/viewer",
        Members = new[]
        {
            "user:jane@example.com",
        },
    });

});
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataplex.EntryGroupIamBinding;
import com.pulumi.gcp.dataplex.EntryGroupIamBindingArgs;
import java.util.List;
import java.util.ArrayList;
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 binding = new EntryGroupIamBinding("binding", EntryGroupIamBindingArgs.builder()
            .project(testEntryGroupBasic.project())
            .location(testEntryGroupBasic.location())
            .entryGroupId(testEntryGroupBasic.entryGroupId())
            .role("roles/viewer")
            .members("user:jane@example.com")
            .build());

    }
}
resources:
  binding:
    type: gcp:dataplex:EntryGroupIamBinding
    properties:
      project: ${testEntryGroupBasic.project}
      location: ${testEntryGroupBasic.location}
      entryGroupId: ${testEntryGroupBasic.entryGroupId}
      role: roles/viewer
      members:
        - user:jane@example.com

The EntryGroupIamBinding resource takes a members array instead of a single member string. This resource is authoritative for the specified role: it sets the complete member list, removing any members not in the array. Other roles on the EntryGroup remain unchanged.

Replace the entire IAM policy

Organizations managing IAM centrally often set the complete policy in one operation, replacing any existing configuration.

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const admin = gcp.organizations.getIAMPolicy({
    bindings: [{
        role: "roles/viewer",
        members: ["user:jane@example.com"],
    }],
});
const policy = new gcp.dataplex.EntryGroupIamPolicy("policy", {
    project: testEntryGroupBasic.project,
    location: testEntryGroupBasic.location,
    entryGroupId: testEntryGroupBasic.entryGroupId,
    policyData: admin.then(admin => admin.policyData),
});
import pulumi
import pulumi_gcp as gcp

admin = gcp.organizations.get_iam_policy(bindings=[{
    "role": "roles/viewer",
    "members": ["user:jane@example.com"],
}])
policy = gcp.dataplex.EntryGroupIamPolicy("policy",
    project=test_entry_group_basic["project"],
    location=test_entry_group_basic["location"],
    entry_group_id=test_entry_group_basic["entryGroupId"],
    policy_data=admin.policy_data)
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/dataplex"
	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/organizations"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{
			Bindings: []organizations.GetIAMPolicyBinding{
				{
					Role: "roles/viewer",
					Members: []string{
						"user:jane@example.com",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = dataplex.NewEntryGroupIamPolicy(ctx, "policy", &dataplex.EntryGroupIamPolicyArgs{
			Project:      pulumi.Any(testEntryGroupBasic.Project),
			Location:     pulumi.Any(testEntryGroupBasic.Location),
			EntryGroupId: pulumi.Any(testEntryGroupBasic.EntryGroupId),
			PolicyData:   pulumi.String(admin.PolicyData),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var admin = Gcp.Organizations.GetIAMPolicy.Invoke(new()
    {
        Bindings = new[]
        {
            new Gcp.Organizations.Inputs.GetIAMPolicyBindingInputArgs
            {
                Role = "roles/viewer",
                Members = new[]
                {
                    "user:jane@example.com",
                },
            },
        },
    });

    var policy = new Gcp.DataPlex.EntryGroupIamPolicy("policy", new()
    {
        Project = testEntryGroupBasic.Project,
        Location = testEntryGroupBasic.Location,
        EntryGroupId = testEntryGroupBasic.EntryGroupId,
        PolicyData = admin.Apply(getIAMPolicyResult => getIAMPolicyResult.PolicyData),
    });

});
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetIAMPolicyArgs;
import com.pulumi.gcp.dataplex.EntryGroupIamPolicy;
import com.pulumi.gcp.dataplex.EntryGroupIamPolicyArgs;
import java.util.List;
import java.util.ArrayList;
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 admin = OrganizationsFunctions.getIAMPolicy(GetIAMPolicyArgs.builder()
            .bindings(GetIAMPolicyBindingArgs.builder()
                .role("roles/viewer")
                .members("user:jane@example.com")
                .build())
            .build());

        var policy = new EntryGroupIamPolicy("policy", EntryGroupIamPolicyArgs.builder()
            .project(testEntryGroupBasic.project())
            .location(testEntryGroupBasic.location())
            .entryGroupId(testEntryGroupBasic.entryGroupId())
            .policyData(admin.policyData())
            .build());

    }
}
resources:
  policy:
    type: gcp:dataplex:EntryGroupIamPolicy
    properties:
      project: ${testEntryGroupBasic.project}
      location: ${testEntryGroupBasic.location}
      entryGroupId: ${testEntryGroupBasic.entryGroupId}
      policyData: ${admin.policyData}
variables:
  admin:
    fn::invoke:
      function: gcp:organizations:getIAMPolicy
      arguments:
        bindings:
          - role: roles/viewer
            members:
              - user:jane@example.com

The EntryGroupIamPolicy resource uses policyData from the getIAMPolicy data source, which defines all role bindings at once. This resource is fully authoritative: it replaces the entire IAM policy for the EntryGroup. It cannot be used alongside EntryGroupIamBinding or EntryGroupIamMember because they will conflict over policy ownership.

Beyond these examples

These snippets focus on specific IAM management strategies: single-member grants, multi-member role bindings, and full policy replacement. They’re intentionally minimal rather than complete access control configurations.

The examples reference pre-existing infrastructure such as Dataplex EntryGroup resources and GCP project and location configuration. They focus on IAM binding configuration rather than provisioning the EntryGroups themselves.

To keep things focused, common IAM patterns are omitted, including:

  • Conditional IAM bindings (condition property)
  • Custom role definitions
  • Service account creation and management
  • EntryGroup resource provisioning

These omissions are intentional: the goal is to illustrate how each IAM resource type is wired, not provide drop-in access control modules. See the EntryGroupIamMember resource reference for all available configuration options.

Let's manage GCP Dataplex Entry Group IAM Access

Get started with Pulumi Cloud, then follow our quick setup guide to deploy this infrastructure.

Try Pulumi Cloud for FREE

Frequently Asked Questions

Resource Selection & Conflicts
What's the difference between EntryGroupIamPolicy, EntryGroupIamBinding, and EntryGroupIamMember?
EntryGroupIamPolicy is authoritative and replaces the entire IAM policy. EntryGroupIamBinding is authoritative for a specific role, managing all members for that role while preserving other roles. EntryGroupIamMember is non-authoritative, adding individual members without affecting other members for the same role.
Can I mix EntryGroupIamPolicy with other IAM resources?
No, EntryGroupIamPolicy cannot be used with EntryGroupIamBinding or EntryGroupIamMember as they will conflict over policy management.
Can I use EntryGroupIamBinding and EntryGroupIamMember together?
Yes, but only if they don’t grant privileges to the same role. Using both for the same role will cause conflicts.
IAM Configuration
What member identity formats are supported?
Supported formats include allUsers, allAuthenticatedUsers, user:{email}, serviceAccount:{email}, group:{email}, domain:{domain}, projectOwner/Editor/Viewer:{projectid}, and federated identities using principal:// format.
How do I specify custom roles?
Custom roles must use the format [projects|organizations]/{parent-name}/roles/{role-name}, for example projects/my-project/roles/my-custom-role.
Resource Properties & Immutability
What properties can't be changed after creation?
All properties are immutable: entryGroupId, location, member, project, role, and condition. Changes require resource replacement.

Using a different cloud?

Explore security guides for other cloud providers: