Google Groups

Use Google Groups to manage Google Workspace groups and membership through the Admin SDK Directory API. Create, read, update, or delete groups; manage aliases; add, remove, or update members with OWNER, MANAGER, or MEMBER roles; and check membership.

Connect an account with the required Workspace administrative permissions. Get Settings and Update Settings also use the Groups Settings API, which requires https://www.googleapis.com/auth/apps.groups.settings. Sim's current Google Groups OAuth connection requests Directory API scopes only, so it does not provide the scope needed for those settings actions.

OAuth scopes

Sim requests these scopes when someone connects a Google Groups account. For a self-hosted deployment, register your own app with the provider using the settings below. See Integrations and OAuth for setup.

SettingValue
Redirect URI<NEXT_PUBLIC_APP_URL>/api/auth/oauth2/callback/google-groups
Environment variablesGOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET
ScopeDescription
https://www.googleapis.com/auth/userinfo.emailView email address
https://www.googleapis.com/auth/userinfo.profileView basic profile info
https://www.googleapis.com/auth/admin.directory.groupManage Google Workspace groups
https://www.googleapis.com/auth/admin.directory.group.memberManage Google Workspace group memberships

Use the block

Connect to Google Workspace to create, update, and manage groups and their members using the Admin SDK Directory API.

Actions

Google Groups List Groups

List all groups in a Google Workspace domain

Inputs and outputs

Input

ParameterTypeRequiredDescription
customerstringNoCustomer ID or "my_customer" for the authenticated user's domain
domainstringNoDomain name to filter groups by
maxResultsnumberNoMaximum number of results to return (1-200). Example: 50
pageTokenstringNoToken for fetching the next page of results
querystringNoSearch query to filter groups (e.g., "email:admin*")

Output

ParameterTypeDescription
groupsjsonArray of group objects
nextPageTokenstringToken for fetching next page of results

Google Groups Get Group

Get details of a specific Google Group by email or group ID

Inputs and outputs

Input

ParameterTypeRequiredDescription
groupKeystringYesGroup identifier. Can be the group email address (e.g., team@example.com) or the unique group ID

Output

ParameterTypeDescription
groupjsonGroup object

Google Groups Create Group

Create a new Google Group in the domain

Inputs and outputs

Input

ParameterTypeRequiredDescription
emailstringYesEmail address for the new group (e.g., team@example.com)
namestringYesDisplay name for the group (e.g., Engineering Team)
descriptionstringNoDescription of the group

Output

ParameterTypeDescription
groupjsonCreated group object

Google Groups Update Group

Update an existing Google Group

Inputs and outputs

Input

ParameterTypeRequiredDescription
groupKeystringYesGroup identifier. Can be the group email address (e.g., team@example.com) or the unique group ID
namestringNoNew display name for the group (e.g., Engineering Team)
descriptionstringNoNew description for the group
emailstringNoNew email address for the group (e.g., newteam@example.com)

Output

ParameterTypeDescription
groupjsonUpdated group object

Google Groups Delete Group

Delete a Google Group

Inputs and outputs

Input

ParameterTypeRequiredDescription
groupKeystringYesGroup identifier to delete. Can be the group email address (e.g., team@example.com) or the unique group ID

Output

ParameterTypeDescription
messagestringSuccess message

Google Groups List Members

List all members of a Google Group

Inputs and outputs

Input

ParameterTypeRequiredDescription
groupKeystringYesGroup identifier. Can be the group email address (e.g., team@example.com) or the unique group ID
maxResultsnumberNoMaximum number of results to return (1-200). Example: 50
pageTokenstringNoToken for fetching the next page of results
rolesstringNoFilter by roles (comma-separated: OWNER, MANAGER, MEMBER)

Output

ParameterTypeDescription
membersjsonArray of member objects
nextPageTokenstringToken for fetching next page of results

Google Groups Get Member

Get details of a specific member in a Google Group

Inputs and outputs

Input

ParameterTypeRequiredDescription
groupKeystringYesGroup identifier. Can be the group email address (e.g., team@example.com) or the unique group ID
memberKeystringYesMember identifier. Can be the member email address (e.g., user@example.com) or the unique member ID

Output

ParameterTypeDescription
memberjsonMember object

Google Groups Add Member

Add a new member to a Google Group

Inputs and outputs

Input

ParameterTypeRequiredDescription
groupKeystringYesGroup identifier. Can be the group email address (e.g., team@example.com) or the unique group ID
emailstringYesEmail address of the member to add (e.g., user@example.com)
rolestringNoRole for the member: MEMBER, MANAGER, or OWNER. Defaults to MEMBER

Output

ParameterTypeDescription
memberjsonAdded member object

Google Groups Remove Member

Remove a member from a Google Group

Inputs and outputs

Input

ParameterTypeRequiredDescription
groupKeystringYesGroup identifier. Can be the group email address (e.g., team@example.com) or the unique group ID
memberKeystringYesMember identifier to remove. Can be the member email address (e.g., user@example.com) or the unique member ID

Output

ParameterTypeDescription
messagestringSuccess message

Google Groups Update Member

Update a member's role in a Google Group (promote or demote)

Inputs and outputs

Input

ParameterTypeRequiredDescription
groupKeystringYesGroup identifier. Can be the group email address (e.g., team@example.com) or the unique group ID
memberKeystringYesMember identifier. Can be the member email address (e.g., user@example.com) or the unique member ID
rolestringYesNew role for the member: MEMBER, MANAGER, or OWNER

Output

ParameterTypeDescription
memberjsonUpdated member object

Google Groups Has Member

Check if a user is a member of a Google Group

Inputs and outputs

Input

ParameterTypeRequiredDescription
groupKeystringYesGroup identifier. Can be the group email address (e.g., team@example.com) or the unique group ID
memberKeystringYesMember identifier to check. Can be the member email address (e.g., user@example.com) or the unique member ID

Output

ParameterTypeDescription
isMemberbooleanWhether the user is a member of the group

Google Groups List Aliases

List all email aliases for a Google Group

Inputs and outputs

Input

ParameterTypeRequiredDescription
groupKeystringYesGroup identifier. Can be the group email address (e.g., team@example.com) or the unique group ID

Output

ParameterTypeDescription
aliasesarrayList of email aliases for the group
↳ idstringUnique group identifier
↳ primaryEmailstringGroup's primary email address
↳ aliasstringAlias email address
↳ kindstringAPI resource type
↳ etagstringResource version identifier

Google Groups Add Alias

Add an email alias to a Google Group

Inputs and outputs

Input

ParameterTypeRequiredDescription
groupKeystringYesGroup identifier. Can be the group email address (e.g., team@example.com) or the unique group ID
aliasstringYesThe email alias to add to the group

Output

ParameterTypeDescription
idstringUnique group identifier
primaryEmailstringGroup's primary email address
aliasstringThe alias that was added
kindstringAPI resource type
etagstringResource version identifier

Google Groups Remove Alias

Remove an email alias from a Google Group

Inputs and outputs

Input

ParameterTypeRequiredDescription
groupKeystringYesGroup identifier. Can be the group email address (e.g., team@example.com) or the unique group ID
aliasstringYesThe email alias to remove from the group

Output

ParameterTypeDescription
deletedbooleanWhether the alias was successfully deleted

Google Groups Get Settings

Get the settings for a Google Group including access permissions, moderation, and posting options

Inputs and outputs

Input

ParameterTypeRequiredDescription
groupEmailstringYesThe email address of the group (e.g., team@example.com)

Output

ParameterTypeDescription
emailstringThe group's email address
namestringThe group name (max 75 characters)
descriptionstringThe group description (max 4096 characters)
whoCanJoinstringWho can join the group (ANYONE_CAN_JOIN, ALL_IN_DOMAIN_CAN_JOIN, INVITED_CAN_JOIN, CAN_REQUEST_TO_JOIN)
whoCanViewMembershipstringWho can view group membership
whoCanViewGroupstringWho can view group messages
whoCanPostMessagestringWho can post messages to the group
allowExternalMembersstringWhether external users can be members
allowWebPostingstringWhether web posting is allowed
primaryLanguagestringThe group's primary language
isArchivedstringWhether messages are archived
archiveOnlystringWhether the group is archive-only (inactive)
messageModerationLevelstringMessage moderation level
spamModerationLevelstringSpam handling level (ALLOW, MODERATE, SILENTLY_MODERATE, REJECT)
replyTostringDefault reply destination
customReplyTostringCustom email for replies
includeCustomFooterstringWhether to include custom footer
customFooterTextstringCustom footer text (max 1000 characters)
sendMessageDenyNotificationstringWhether to send rejection notifications
defaultMessageDenyNotificationTextstringDefault rejection message text
membersCanPostAsTheGroupstringWhether members can post as the group
includeInGlobalAddressListstringWhether included in Global Address List
whoCanLeaveGroupstringWho can leave the group
whoCanContactOwnerstringWho can contact the group owner
favoriteRepliesOnTopstringWhether favorite replies appear at top
whoCanApproveMembersstringWho can approve new members
whoCanBanUsersstringWho can ban users
whoCanModerateMembersstringWho can manage members
whoCanModerateContentstringWho can moderate content
whoCanAssistContentstringWho can assist with content metadata
enableCollaborativeInboxstringWhether collaborative inbox is enabled
whoCanDiscoverGroupstringWho can discover the group
defaultSenderstringDefault sender identity (DEFAULT_SELF or GROUP)

Google Groups Update Settings

Update the settings for a Google Group including access permissions, moderation, and posting options

Inputs and outputs

Input

ParameterTypeRequiredDescription
groupEmailstringYesThe email address of the group (e.g., team@example.com)
namestringNoThe group name (max 75 characters)
descriptionstringNoThe group description (max 4096 characters)
whoCanJoinstringNoWho can join: ANYONE_CAN_JOIN, ALL_IN_DOMAIN_CAN_JOIN, INVITED_CAN_JOIN, CAN_REQUEST_TO_JOIN
whoCanViewMembershipstringNoWho can view membership: ALL_IN_DOMAIN_CAN_VIEW, ALL_MEMBERS_CAN_VIEW, ALL_MANAGERS_CAN_VIEW
whoCanViewGroupstringNoWho can view group messages: ANYONE_CAN_VIEW, ALL_IN_DOMAIN_CAN_VIEW, ALL_MEMBERS_CAN_VIEW, ALL_MANAGERS_CAN_VIEW, ALL_OWNERS_CAN_VIEW
whoCanPostMessagestringNoWho can post: NONE_CAN_POST, ALL_MANAGERS_CAN_POST, ALL_MEMBERS_CAN_POST, ALL_OWNERS_CAN_POST, ALL_IN_DOMAIN_CAN_POST, ANYONE_CAN_POST
allowExternalMembersstringNoWhether external users can be members: true or false
allowWebPostingstringNoWhether web posting is allowed: true or false
primaryLanguagestringNoThe group's primary language (e.g., en)
isArchivedstringNoWhether messages are archived: true or false
archiveOnlystringNoWhether the group is archive-only (inactive): true or false
messageModerationLevelstringNoMessage moderation: MODERATE_ALL_MESSAGES, MODERATE_NON_MEMBERS, MODERATE_NEW_MEMBERS, MODERATE_NONE
spamModerationLevelstringNoSpam handling: ALLOW, MODERATE, SILENTLY_MODERATE, REJECT
replyTostringNoDefault reply: REPLY_TO_CUSTOM, REPLY_TO_SENDER, REPLY_TO_LIST, REPLY_TO_OWNER, REPLY_TO_IGNORE, REPLY_TO_MANAGERS
customReplyTostringNoCustom email for replies (when replyTo is REPLY_TO_CUSTOM)
includeCustomFooterstringNoWhether to include custom footer: true or false
customFooterTextstringNoCustom footer text (max 1000 characters)
sendMessageDenyNotificationstringNoWhether to send rejection notifications: true or false
defaultMessageDenyNotificationTextstringNoDefault rejection message text
membersCanPostAsTheGroupstringNoWhether members can post as the group: true or false
includeInGlobalAddressListstringNoWhether included in Global Address List: true or false
whoCanLeaveGroupstringNoWho can leave: ALL_MANAGERS_CAN_LEAVE, ALL_MEMBERS_CAN_LEAVE, NONE_CAN_LEAVE
whoCanContactOwnerstringNoWho can contact owner: ALL_IN_DOMAIN_CAN_CONTACT, ALL_MANAGERS_CAN_CONTACT, ALL_MEMBERS_CAN_CONTACT, ANYONE_CAN_CONTACT
favoriteRepliesOnTopstringNoWhether favorite replies appear at top: true or false
whoCanApproveMembersstringNoWho can approve members: ALL_OWNERS_CAN_APPROVE, ALL_MANAGERS_CAN_APPROVE, ALL_MEMBERS_CAN_APPROVE, NONE_CAN_APPROVE
whoCanBanUsersstringNoWho can ban users: ALL_MEMBERS, OWNERS_AND_MANAGERS, OWNERS_ONLY, NONE
whoCanModerateMembersstringNoWho can manage members: OWNERS_ONLY, OWNERS_AND_MANAGERS, ALL_MEMBERS, NONE
whoCanModerateContentstringNoWho can moderate content: OWNERS_ONLY, OWNERS_AND_MANAGERS, ALL_MEMBERS, NONE
whoCanAssistContentstringNoWho can assist with content metadata: OWNERS_ONLY, OWNERS_AND_MANAGERS, ALL_MEMBERS, NONE
enableCollaborativeInboxstringNoWhether collaborative inbox is enabled: true or false
whoCanDiscoverGroupstringNoWho can discover: ANYONE_CAN_DISCOVER, ALL_IN_DOMAIN_CAN_DISCOVER, ALL_MEMBERS_CAN_DISCOVER
defaultSenderstringNoDefault sender: DEFAULT_SELF or GROUP

Output

ParameterTypeDescription
emailstringThe group's email address
namestringThe group name
descriptionstringThe group description
whoCanJoinstringWho can join the group
whoCanViewMembershipstringWho can view group membership
whoCanViewGroupstringWho can view group messages
whoCanPostMessagestringWho can post messages to the group
allowExternalMembersstringWhether external users can be members
allowWebPostingstringWhether web posting is allowed
primaryLanguagestringThe group's primary language
isArchivedstringWhether messages are archived
archiveOnlystringWhether the group is archive-only
messageModerationLevelstringMessage moderation level
spamModerationLevelstringSpam handling level
replyTostringDefault reply destination
customReplyTostringCustom email for replies
includeCustomFooterstringWhether to include custom footer
customFooterTextstringCustom footer text
sendMessageDenyNotificationstringWhether to send rejection notifications
defaultMessageDenyNotificationTextstringDefault rejection message text
membersCanPostAsTheGroupstringWhether members can post as the group
includeInGlobalAddressListstringWhether included in Global Address List
whoCanLeaveGroupstringWho can leave the group
whoCanContactOwnerstringWho can contact the group owner
favoriteRepliesOnTopstringWhether favorite replies appear at top
whoCanApproveMembersstringWho can approve new members
whoCanBanUsersstringWho can ban users
whoCanModerateMembersstringWho can manage members
whoCanModerateContentstringWho can moderate content
whoCanAssistContentstringWho can assist with content metadata
enableCollaborativeInboxstringWhether collaborative inbox is enabled
whoCanDiscoverGroupstringWho can discover the group
defaultSenderstringDefault sender identity