1. Packages
  2. Googleworkspace Provider
  3. API Docs
  4. GroupMembers
googleworkspace 0.7.0 published on Wednesday, Jan 15, 2025 by hashicorp

googleworkspace.GroupMembers

Explore with Pulumi AI

Group Members resource manages Google Workspace Groups Members. Group Members resides under the https://www.googleapis.com/auth/admin.directory.group client scope.

Example Usage

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

const salesGroup = new googleworkspace.Group("salesGroup", {email: "sales@example.com"});
const michael = new googleworkspace.User("michael", {
    primaryEmail: "michael.scott@example.com",
    password: "34819d7beeabb9260a5c854bc85b3e44",
    hashFunction: "MD5",
    name: {
        familyName: "Scott",
        givenName: "Michael",
    },
});
const frank = new googleworkspace.User("frank", {
    primaryEmail: "frank.scott@example.com",
    password: "2095312189753de6ad47dfe20cbe97ec",
    hashFunction: "MD5",
    name: {
        familyName: "Scott",
        givenName: "Frank",
    },
});
const salesGroupMembers = new googleworkspace.GroupMembers("salesGroupMembers", {
    groupId: salesGroup.id,
    members: [
        {
            email: michael.primaryEmail,
            role: "MANAGER",
        },
        {
            email: frank.primaryEmail,
            role: "MEMBER",
        },
    ],
});
Copy
import pulumi
import pulumi_googleworkspace as googleworkspace

sales_group = googleworkspace.Group("salesGroup", email="sales@example.com")
michael = googleworkspace.User("michael",
    primary_email="michael.scott@example.com",
    password="34819d7beeabb9260a5c854bc85b3e44",
    hash_function="MD5",
    name={
        "family_name": "Scott",
        "given_name": "Michael",
    })
frank = googleworkspace.User("frank",
    primary_email="frank.scott@example.com",
    password="2095312189753de6ad47dfe20cbe97ec",
    hash_function="MD5",
    name={
        "family_name": "Scott",
        "given_name": "Frank",
    })
sales_group_members = googleworkspace.GroupMembers("salesGroupMembers",
    group_id=sales_group.id,
    members=[
        {
            "email": michael.primary_email,
            "role": "MANAGER",
        },
        {
            "email": frank.primary_email,
            "role": "MEMBER",
        },
    ])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/googleworkspace/googleworkspace"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		salesGroup, err := googleworkspace.NewGroup(ctx, "salesGroup", &googleworkspace.GroupArgs{
			Email: pulumi.String("sales@example.com"),
		})
		if err != nil {
			return err
		}
		michael, err := googleworkspace.NewUser(ctx, "michael", &googleworkspace.UserArgs{
			PrimaryEmail: pulumi.String("michael.scott@example.com"),
			Password:     pulumi.String("34819d7beeabb9260a5c854bc85b3e44"),
			HashFunction: pulumi.String("MD5"),
			Name: &googleworkspace.UserNameArgs{
				FamilyName: pulumi.String("Scott"),
				GivenName:  pulumi.String("Michael"),
			},
		})
		if err != nil {
			return err
		}
		frank, err := googleworkspace.NewUser(ctx, "frank", &googleworkspace.UserArgs{
			PrimaryEmail: pulumi.String("frank.scott@example.com"),
			Password:     pulumi.String("2095312189753de6ad47dfe20cbe97ec"),
			HashFunction: pulumi.String("MD5"),
			Name: &googleworkspace.UserNameArgs{
				FamilyName: pulumi.String("Scott"),
				GivenName:  pulumi.String("Frank"),
			},
		})
		if err != nil {
			return err
		}
		_, err = googleworkspace.NewGroupMembers(ctx, "salesGroupMembers", &googleworkspace.GroupMembersArgs{
			GroupId: salesGroup.ID(),
			Members: googleworkspace.GroupMembersMemberArray{
				&googleworkspace.GroupMembersMemberArgs{
					Email: michael.PrimaryEmail,
					Role:  pulumi.String("MANAGER"),
				},
				&googleworkspace.GroupMembersMemberArgs{
					Email: frank.PrimaryEmail,
					Role:  pulumi.String("MEMBER"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Googleworkspace = Pulumi.Googleworkspace;

return await Deployment.RunAsync(() => 
{
    var salesGroup = new Googleworkspace.Group("salesGroup", new()
    {
        Email = "sales@example.com",
    });

    var michael = new Googleworkspace.User("michael", new()
    {
        PrimaryEmail = "michael.scott@example.com",
        Password = "34819d7beeabb9260a5c854bc85b3e44",
        HashFunction = "MD5",
        Name = new Googleworkspace.Inputs.UserNameArgs
        {
            FamilyName = "Scott",
            GivenName = "Michael",
        },
    });

    var frank = new Googleworkspace.User("frank", new()
    {
        PrimaryEmail = "frank.scott@example.com",
        Password = "2095312189753de6ad47dfe20cbe97ec",
        HashFunction = "MD5",
        Name = new Googleworkspace.Inputs.UserNameArgs
        {
            FamilyName = "Scott",
            GivenName = "Frank",
        },
    });

    var salesGroupMembers = new Googleworkspace.GroupMembers("salesGroupMembers", new()
    {
        GroupId = salesGroup.Id,
        Members = new[]
        {
            new Googleworkspace.Inputs.GroupMembersMemberArgs
            {
                Email = michael.PrimaryEmail,
                Role = "MANAGER",
            },
            new Googleworkspace.Inputs.GroupMembersMemberArgs
            {
                Email = frank.PrimaryEmail,
                Role = "MEMBER",
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.googleworkspace.Group;
import com.pulumi.googleworkspace.GroupArgs;
import com.pulumi.googleworkspace.User;
import com.pulumi.googleworkspace.UserArgs;
import com.pulumi.googleworkspace.inputs.UserNameArgs;
import com.pulumi.googleworkspace.GroupMembers;
import com.pulumi.googleworkspace.GroupMembersArgs;
import com.pulumi.googleworkspace.inputs.GroupMembersMemberArgs;
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 salesGroup = new Group("salesGroup", GroupArgs.builder()
            .email("sales@example.com")
            .build());

        var michael = new User("michael", UserArgs.builder()
            .primaryEmail("michael.scott@example.com")
            .password("34819d7beeabb9260a5c854bc85b3e44")
            .hashFunction("MD5")
            .name(UserNameArgs.builder()
                .familyName("Scott")
                .givenName("Michael")
                .build())
            .build());

        var frank = new User("frank", UserArgs.builder()
            .primaryEmail("frank.scott@example.com")
            .password("2095312189753de6ad47dfe20cbe97ec")
            .hashFunction("MD5")
            .name(UserNameArgs.builder()
                .familyName("Scott")
                .givenName("Frank")
                .build())
            .build());

        var salesGroupMembers = new GroupMembers("salesGroupMembers", GroupMembersArgs.builder()
            .groupId(salesGroup.id())
            .members(            
                GroupMembersMemberArgs.builder()
                    .email(michael.primaryEmail())
                    .role("MANAGER")
                    .build(),
                GroupMembersMemberArgs.builder()
                    .email(frank.primaryEmail())
                    .role("MEMBER")
                    .build())
            .build());

    }
}
Copy
resources:
  salesGroup:
    type: googleworkspace:Group
    properties:
      email: sales@example.com
  michael:
    type: googleworkspace:User
    properties:
      primaryEmail: michael.scott@example.com
      password: 34819d7beeabb9260a5c854bc85b3e44
      hashFunction: MD5
      name:
        familyName: Scott
        givenName: Michael
  frank:
    type: googleworkspace:User
    properties:
      primaryEmail: frank.scott@example.com
      password: 2095312189753de6ad47dfe20cbe97ec
      hashFunction: MD5
      name:
        familyName: Scott
        givenName: Frank
  salesGroupMembers:
    type: googleworkspace:GroupMembers
    properties:
      groupId: ${salesGroup.id}
      members:
        - email: ${michael.primaryEmail}
          role: MANAGER
        - email: ${frank.primaryEmail}
          role: MEMBER
Copy

Create GroupMembers Resource

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

Constructor syntax

new GroupMembers(name: string, args: GroupMembersArgs, opts?: CustomResourceOptions);
@overload
def GroupMembers(resource_name: str,
                 args: GroupMembersArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def GroupMembers(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 group_id: Optional[str] = None,
                 members: Optional[Sequence[GroupMembersMemberArgs]] = None)
func NewGroupMembers(ctx *Context, name string, args GroupMembersArgs, opts ...ResourceOption) (*GroupMembers, error)
public GroupMembers(string name, GroupMembersArgs args, CustomResourceOptions? opts = null)
public GroupMembers(String name, GroupMembersArgs args)
public GroupMembers(String name, GroupMembersArgs args, CustomResourceOptions options)
type: googleworkspace:GroupMembers
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. GroupMembersArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. GroupMembersArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. GroupMembersArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. GroupMembersArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. GroupMembersArgs
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 groupMembersResource = new Googleworkspace.GroupMembers("groupMembersResource", new()
{
    GroupId = "string",
    Members = new[]
    {
        new Googleworkspace.Inputs.GroupMembersMemberArgs
        {
            Email = "string",
            DeliverySettings = "string",
            Id = "string",
            Role = "string",
            Status = "string",
            Type = "string",
        },
    },
});
Copy
example, err := googleworkspace.NewGroupMembers(ctx, "groupMembersResource", &googleworkspace.GroupMembersArgs{
GroupId: pulumi.String("string"),
Members: .GroupMembersMemberArray{
&.GroupMembersMemberArgs{
Email: pulumi.String("string"),
DeliverySettings: pulumi.String("string"),
Id: pulumi.String("string"),
Role: pulumi.String("string"),
Status: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
})
Copy
var groupMembersResource = new GroupMembers("groupMembersResource", GroupMembersArgs.builder()
    .groupId("string")
    .members(GroupMembersMemberArgs.builder()
        .email("string")
        .deliverySettings("string")
        .id("string")
        .role("string")
        .status("string")
        .type("string")
        .build())
    .build());
Copy
group_members_resource = googleworkspace.GroupMembers("groupMembersResource",
    group_id="string",
    members=[{
        "email": "string",
        "delivery_settings": "string",
        "id": "string",
        "role": "string",
        "status": "string",
        "type": "string",
    }])
Copy
const groupMembersResource = new googleworkspace.GroupMembers("groupMembersResource", {
    groupId: "string",
    members: [{
        email: "string",
        deliverySettings: "string",
        id: "string",
        role: "string",
        status: "string",
        type: "string",
    }],
});
Copy
type: googleworkspace:GroupMembers
properties:
    groupId: string
    members:
        - deliverySettings: string
          email: string
          id: string
          role: string
          status: string
          type: string
Copy

GroupMembers 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 GroupMembers resource accepts the following input properties:

GroupId This property is required. string
Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
Members List<GroupMembersMember>
The members of the group
GroupId This property is required. string
Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
Members []GroupMembersMemberArgs
The members of the group
groupId This property is required. String
Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
members List<GroupMembersMember>
The members of the group
groupId This property is required. string
Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
members GroupMembersMember[]
The members of the group
group_id This property is required. str
Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
members Sequence[GroupMembersMemberArgs]
The members of the group
groupId This property is required. String
Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
members List<Property Map>
The members of the group

Outputs

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

Etag string
ETag of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Etag string
ETag of the resource.
Id string
The provider-assigned unique ID for this managed resource.
etag String
ETag of the resource.
id String
The provider-assigned unique ID for this managed resource.
etag string
ETag of the resource.
id string
The provider-assigned unique ID for this managed resource.
etag str
ETag of the resource.
id str
The provider-assigned unique ID for this managed resource.
etag String
ETag of the resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing GroupMembers Resource

Get an existing GroupMembers 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?: GroupMembersState, opts?: CustomResourceOptions): GroupMembers
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        etag: Optional[str] = None,
        group_id: Optional[str] = None,
        members: Optional[Sequence[GroupMembersMemberArgs]] = None) -> GroupMembers
func GetGroupMembers(ctx *Context, name string, id IDInput, state *GroupMembersState, opts ...ResourceOption) (*GroupMembers, error)
public static GroupMembers Get(string name, Input<string> id, GroupMembersState? state, CustomResourceOptions? opts = null)
public static GroupMembers get(String name, Output<String> id, GroupMembersState state, CustomResourceOptions options)
resources:  _:    type: googleworkspace:GroupMembers    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Etag string
ETag of the resource.
GroupId string
Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
Members List<GroupMembersMember>
The members of the group
Etag string
ETag of the resource.
GroupId string
Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
Members []GroupMembersMemberArgs
The members of the group
etag String
ETag of the resource.
groupId String
Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
members List<GroupMembersMember>
The members of the group
etag string
ETag of the resource.
groupId string
Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
members GroupMembersMember[]
The members of the group
etag str
ETag of the resource.
group_id str
Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
members Sequence[GroupMembersMemberArgs]
The members of the group
etag String
ETag of the resource.
groupId String
Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
members List<Property Map>
The members of the group

Supporting Types

GroupMembersMember
, GroupMembersMemberArgs

Email This property is required. string
The member's email address. A member can be a user or another group. This property isrequired when adding a member to a group. The email must be unique and cannot be an alias of another group. If the email address is changed, the API automatically reflects the email address changes.
DeliverySettings string
Defaults to ALL_MAIL. Defines mail delivery preferences of member. Acceptable values are: - ALL_MAIL: All messages, delivered as soon as they arrive. - DAILY: No more than one message a day. - DIGEST: Up to 25 messages bundled into a single message. - DISABLED: Remove subscription. - NONE: No messages.
Id string
The unique ID of the group member. A member id can be used as a member request URI's memberKey.
Role string
Defaults to MEMBER. The member's role in a group. The API returns an error for cycles in group memberships. For example, if group1 is a member of group2, group2 cannot be a member of group1. Acceptable values are: - MANAGER: This role is only available if the Google Groups for Business is enabled using the Admin Console. A MANAGER role can do everything done by an OWNER role except make a member an OWNER or delete the group. A group can have multiple MANAGER members. - MEMBER: This role can subscribe to a group, view discussion archives, and view the group's membership list. - OWNER: This role can send messages to the group, add or remove members, change member roles, change group's settings, and delete the group. An OWNER must be a member of the group. A group can have more than one OWNER.
Status string
Status of member.
Type string
Defaults to USER. The type of group member. Acceptable values are: - CUSTOMER: The member represents all users in a domain. An email address is not returned and the ID returned is the customer ID. - GROUP: The member is another group. - USER: The member is a user.
Email This property is required. string
The member's email address. A member can be a user or another group. This property isrequired when adding a member to a group. The email must be unique and cannot be an alias of another group. If the email address is changed, the API automatically reflects the email address changes.
DeliverySettings string
Defaults to ALL_MAIL. Defines mail delivery preferences of member. Acceptable values are: - ALL_MAIL: All messages, delivered as soon as they arrive. - DAILY: No more than one message a day. - DIGEST: Up to 25 messages bundled into a single message. - DISABLED: Remove subscription. - NONE: No messages.
Id string
The unique ID of the group member. A member id can be used as a member request URI's memberKey.
Role string
Defaults to MEMBER. The member's role in a group. The API returns an error for cycles in group memberships. For example, if group1 is a member of group2, group2 cannot be a member of group1. Acceptable values are: - MANAGER: This role is only available if the Google Groups for Business is enabled using the Admin Console. A MANAGER role can do everything done by an OWNER role except make a member an OWNER or delete the group. A group can have multiple MANAGER members. - MEMBER: This role can subscribe to a group, view discussion archives, and view the group's membership list. - OWNER: This role can send messages to the group, add or remove members, change member roles, change group's settings, and delete the group. An OWNER must be a member of the group. A group can have more than one OWNER.
Status string
Status of member.
Type string
Defaults to USER. The type of group member. Acceptable values are: - CUSTOMER: The member represents all users in a domain. An email address is not returned and the ID returned is the customer ID. - GROUP: The member is another group. - USER: The member is a user.
email This property is required. String
The member's email address. A member can be a user or another group. This property isrequired when adding a member to a group. The email must be unique and cannot be an alias of another group. If the email address is changed, the API automatically reflects the email address changes.
deliverySettings String
Defaults to ALL_MAIL. Defines mail delivery preferences of member. Acceptable values are: - ALL_MAIL: All messages, delivered as soon as they arrive. - DAILY: No more than one message a day. - DIGEST: Up to 25 messages bundled into a single message. - DISABLED: Remove subscription. - NONE: No messages.
id String
The unique ID of the group member. A member id can be used as a member request URI's memberKey.
role String
Defaults to MEMBER. The member's role in a group. The API returns an error for cycles in group memberships. For example, if group1 is a member of group2, group2 cannot be a member of group1. Acceptable values are: - MANAGER: This role is only available if the Google Groups for Business is enabled using the Admin Console. A MANAGER role can do everything done by an OWNER role except make a member an OWNER or delete the group. A group can have multiple MANAGER members. - MEMBER: This role can subscribe to a group, view discussion archives, and view the group's membership list. - OWNER: This role can send messages to the group, add or remove members, change member roles, change group's settings, and delete the group. An OWNER must be a member of the group. A group can have more than one OWNER.
status String
Status of member.
type String
Defaults to USER. The type of group member. Acceptable values are: - CUSTOMER: The member represents all users in a domain. An email address is not returned and the ID returned is the customer ID. - GROUP: The member is another group. - USER: The member is a user.
email This property is required. string
The member's email address. A member can be a user or another group. This property isrequired when adding a member to a group. The email must be unique and cannot be an alias of another group. If the email address is changed, the API automatically reflects the email address changes.
deliverySettings string
Defaults to ALL_MAIL. Defines mail delivery preferences of member. Acceptable values are: - ALL_MAIL: All messages, delivered as soon as they arrive. - DAILY: No more than one message a day. - DIGEST: Up to 25 messages bundled into a single message. - DISABLED: Remove subscription. - NONE: No messages.
id string
The unique ID of the group member. A member id can be used as a member request URI's memberKey.
role string
Defaults to MEMBER. The member's role in a group. The API returns an error for cycles in group memberships. For example, if group1 is a member of group2, group2 cannot be a member of group1. Acceptable values are: - MANAGER: This role is only available if the Google Groups for Business is enabled using the Admin Console. A MANAGER role can do everything done by an OWNER role except make a member an OWNER or delete the group. A group can have multiple MANAGER members. - MEMBER: This role can subscribe to a group, view discussion archives, and view the group's membership list. - OWNER: This role can send messages to the group, add or remove members, change member roles, change group's settings, and delete the group. An OWNER must be a member of the group. A group can have more than one OWNER.
status string
Status of member.
type string
Defaults to USER. The type of group member. Acceptable values are: - CUSTOMER: The member represents all users in a domain. An email address is not returned and the ID returned is the customer ID. - GROUP: The member is another group. - USER: The member is a user.
email This property is required. str
The member's email address. A member can be a user or another group. This property isrequired when adding a member to a group. The email must be unique and cannot be an alias of another group. If the email address is changed, the API automatically reflects the email address changes.
delivery_settings str
Defaults to ALL_MAIL. Defines mail delivery preferences of member. Acceptable values are: - ALL_MAIL: All messages, delivered as soon as they arrive. - DAILY: No more than one message a day. - DIGEST: Up to 25 messages bundled into a single message. - DISABLED: Remove subscription. - NONE: No messages.
id str
The unique ID of the group member. A member id can be used as a member request URI's memberKey.
role str
Defaults to MEMBER. The member's role in a group. The API returns an error for cycles in group memberships. For example, if group1 is a member of group2, group2 cannot be a member of group1. Acceptable values are: - MANAGER: This role is only available if the Google Groups for Business is enabled using the Admin Console. A MANAGER role can do everything done by an OWNER role except make a member an OWNER or delete the group. A group can have multiple MANAGER members. - MEMBER: This role can subscribe to a group, view discussion archives, and view the group's membership list. - OWNER: This role can send messages to the group, add or remove members, change member roles, change group's settings, and delete the group. An OWNER must be a member of the group. A group can have more than one OWNER.
status str
Status of member.
type str
Defaults to USER. The type of group member. Acceptable values are: - CUSTOMER: The member represents all users in a domain. An email address is not returned and the ID returned is the customer ID. - GROUP: The member is another group. - USER: The member is a user.
email This property is required. String
The member's email address. A member can be a user or another group. This property isrequired when adding a member to a group. The email must be unique and cannot be an alias of another group. If the email address is changed, the API automatically reflects the email address changes.
deliverySettings String
Defaults to ALL_MAIL. Defines mail delivery preferences of member. Acceptable values are: - ALL_MAIL: All messages, delivered as soon as they arrive. - DAILY: No more than one message a day. - DIGEST: Up to 25 messages bundled into a single message. - DISABLED: Remove subscription. - NONE: No messages.
id String
The unique ID of the group member. A member id can be used as a member request URI's memberKey.
role String
Defaults to MEMBER. The member's role in a group. The API returns an error for cycles in group memberships. For example, if group1 is a member of group2, group2 cannot be a member of group1. Acceptable values are: - MANAGER: This role is only available if the Google Groups for Business is enabled using the Admin Console. A MANAGER role can do everything done by an OWNER role except make a member an OWNER or delete the group. A group can have multiple MANAGER members. - MEMBER: This role can subscribe to a group, view discussion archives, and view the group's membership list. - OWNER: This role can send messages to the group, add or remove members, change member roles, change group's settings, and delete the group. An OWNER must be a member of the group. A group can have more than one OWNER.
status String
Status of member.
type String
Defaults to USER. The type of group member. Acceptable values are: - CUSTOMER: The member represents all users in a domain. An email address is not returned and the ID returned is the customer ID. - GROUP: The member is another group. - USER: The member is a user.

Import

$ pulumi import googleworkspace:index/groupMembers:GroupMembers sales groups/01abcde23fg4h5i
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
googleworkspace hashicorp/terraform-provider-googleworkspace
License
Notes
This Pulumi package is based on the googleworkspace Terraform Provider.