Group Settings data source in the Terraform Googleworkspace provider. Group Settings resides under the https://www.googleapis.com/auth/apps.groups.settings
client scope.
data "googleworkspace_group_settings" "sales-settings" {
email = "sales@example.com"
}
output "who_can_join_sales" {
value = data.googleworkspace_group_settings.sales-settings.who_can_join
}
email
(String) The group's email address.allow_external_members
(Boolean) Identifies whether members external to your organization can join the group. If true, Google Workspace users external to your organization can become members of this group. If false, users not belonging to the organization are not allowed to become members of this group.allow_web_posting
(Boolean) Allows posting from web. If true, allows any member to post to the group forum. If false, Members only use Gmail to communicate with the group.archive_only
(Boolean) Allows the group to be archived only. If true, Group is archived and the group is inactive. New messages to this group are rejected. The older archived messages are browsable and searchable. If true, the who_can_post_message
property is set to NONE_CAN_POST
. If reverted from true to false, who_can_post_message
is set to ALL_MANAGERS_CAN_POST
. If false, The group is active and can receive messages. When false, updating who_can_post_message
to NONE_CAN_POST
, results in an error.custom_footer_text
(String) Set the content of custom footer text. The maximum number of characters is 1,000.custom_reply_to
(String) An email address used when replying to a message if the reply_to
property is set to REPLY_TO_CUSTOM
. This address is defined by an account administrator. When the group's reply_to
property is set to REPLY_TO_CUSTOM
, the custom_reply_to
property holds a custom email address used when replying to a message, the custom_reply_to
property must have a text value or an error is returned.custom_roles_enabled_for_settings_to_be_merged
(Boolean) Specifies whether the group has a custom role that's included in one of the settings being merged.default_message_deny_notification_text
(String) When a message is rejected, this is text for the rejection notification sent to the message's author. By default, this property is empty and has no value in the API's response body. The maximum notification text size is 10,000 characters. Requires send_message_deny_notification
property to be true.description
(String) Description of the group. The maximum group description is no more than 300 characters.enable_collaborative_inbox
(Boolean) Specifies whether a collaborative inbox will remain turned on for the group.id
(String) The ID of this resource.include_custom_footer
(Boolean) Whether to include custom footer.include_in_global_address_list
(Boolean) Enables the group to be included in the Global Address List. If true, the group is included in the Global Address List. If false, it is not included in the Global Address List.is_archived
(Boolean) Allows the Group contents to be archived. If true, archive messages sent to the group. If false, Do not keep an archive of messages sent to this group. If false, previously archived messages remain in the archive.members_can_post_as_the_group
(Boolean) Enables members to post messages as the group. If true, group member can post messages using the group's email address instead of their own email address. Message appear to originate from the group itself. Any message moderation settings on individual users or new members do not apply to posts made on behalf of the group. If false, members can not post in behalf of the group's email address.message_moderation_level
(String) Moderation level of incoming messages. Possible values are:
MODERATE_ALL_MESSAGES
: All messages are sent to the group owner's email address for approval. If approved, the message is sent to the group. MODERATE_NON_MEMBERS
: All messages from non group members are sent to the group owner's email address for approval. If approved, the message is sent to the group. MODERATE_NEW_MEMBERS
: All messages from new members are sent to the group owner's email address for approval. If approved, the message is sent to the group. MODERATE_NONE
: No moderator approval is required. Messages are delivered directly to the group.
Note: When the who_can_post_message
is set to ANYONE_CAN_POST
, we recommend the message_moderation_level
be set to MODERATE_NON_MEMBERS
to protect the group from possible spam.When member_can_post_as_the_group
is true, any message moderation settings on individual users or new members will not apply to posts made on behalf of the group.name
(String) Name of the group, which has a maximum size of 75 characters.primary_language
(String) The primary language for group. For a group's primary language use the language tags from the Google Workspace languages found at Google Workspace Email Settings API Email Language Tags.reply_to
(String) Specifies who receives the default reply. Possible values are:
REPLY_TO_CUSTOM
: For replies to messages, use the group's custom email address. When set to REPLY_TO_CUSTOM
, the custom_reply_to
property holds the custom email address used when replying to a message, the customReplyTo property must have a value. Otherwise an error is returned. REPLY_TO_SENDER
: The reply sent to author of message. REPLY_TO_LIST
: This reply message is sent to the group. REPLY_TO_OWNER
: The reply is sent to the owner(s) of the group. This does not include the group's managers. REPLY_TO_IGNORE
: Group users individually decide where the message reply is sent. REPLY_TO_MANAGERS
: This reply message is sent to the group's managers, which includes all managers and the group owner.send_message_deny_notification
(Boolean) Allows a member to be notified if the member's message to the group is denied by the group owner. If true, when a message is rejected, send the deny message notification to the message author. The default_message_deny_notification_text
property is dependent on the send_message_deny_notification
property being true. If false, when a message is rejected, no notification is sent.spam_moderation_level
(String) Specifies moderation levels for messages detected as spam. Possible values are:
ALLOW
: Post the message to the group. MODERATE
: Send the message to the moderation queue. This is the default. SILENTLY_MODERATE
: Send the message to the moderation queue, but do not send notification to moderators. REJECT
: Immediately reject the message.who_can_assist_content
(String) Specifies who can moderate metadata. Possible values are:
ALL_MEMBERS
OWNERS_AND_MANAGERS
MANAGERS_ONLY
OWNERS_ONLY
NONE
who_can_contact_owner
(String) Permission to contact owner of the group via web UI. Possible values are:
ALL_IN_DOMAIN_CAN_CONTACT
ALL_MANAGERS_CAN_CONTACT
ALL_MEMBERS_CAN_CONTACT
ANYONE_CAN_CONTACT
ALL_OWNERS_CAN_CONTACT
who_can_discover_group
(String) Specifies the set of users for whom this group is discoverable. Possible values are:
ANYONE_CAN_DISCOVER
ALL_IN_DOMAIN_CAN_DISCOVER
ALL_MEMBERS_CAN_DISCOVER
who_can_join
(String) Permission to join group. Possible values are:
ANYONE_CAN_JOIN
: Any Internet user, both inside and outside your domain, can join the group. ALL_IN_DOMAIN_CAN_JOIN
: Anyone in the account domain can join. This includes accounts with multiple domains. INVITED_CAN_JOIN
: Candidates for membership can be invited to join. CAN_REQUEST_TO_JOIN
: Non members can request an invitation to join.who_can_leave_group
(String) Permission to leave the group. Possible values are:
ALL_MANAGERS_CAN_LEAVE
ALL_MEMBERS_CAN_LEAVE
NONE_CAN_LEAVE
who_can_moderate_content
(String) Specifies who can moderate content. Possible values are:
ALL_MEMBERS
OWNERS_AND_MANAGERS
OWNERS_ONLY
NONE
who_can_moderate_members
(String) Specifies who can manage members. Possible values are:
ALL_MEMBERS
OWNERS_AND_MANAGERS
OWNERS_ONLY
NONE
who_can_post_message
(String) Permissions to post messages. Possible values are:
NONE_CAN_POST
: The group is disabled and archived. No one can post a message to this group. * When archiveOnly is false, updating whoCanPostMessage to NONE_CAN_POST, results in an error. * If archiveOnly is reverted from true to false, whoCanPostMessages is set to ALL_MANAGERS_CAN_POST. ALL_MANAGERS_CAN_POST
: Managers, including group owners, can post messages. ALL_MEMBERS_CAN_POST
: Any group member can post a message. ALL_OWNERS_CAN_POST
: Only group owners can post a message. ALL_IN_DOMAIN_CAN_POST
: Anyone in the account can post a message. ANYONE_CAN_POST
: Any Internet user who outside your account can access your Google Groups service and post a message.
*Note: When who_can_post_message
is set to ANYONE_CAN_POST
, we recommend themessage_moderation_level
be set to MODERATE_NON_MEMBERS
to protect the group from possible spam. Users not belonging to the organization are not allowed to become members of this group.who_can_view_group
(String) Permissions to view group messages. Possible values are:
ANYONE_CAN_VIEW
: Any Internet user can view the group's messages. ALL_IN_DOMAIN_CAN_VIEW
: Anyone in your account can view this group's messages. ALL_MEMBERS_CAN_VIEW
: All group members can view the group's messages. ALL_MANAGERS_CAN_VIEW
: Any group manager can view this group's messages. ALL_OWNERS_CAN_VIEW
: The group owners can view this group's messages.who_can_view_membership
(String) Permissions to view membership. Possible values are:
ALL_IN_DOMAIN_CAN_VIEW
: Anyone in the account can view the group members list. If a group already has external members, those members can still send email to this group. ALL_MEMBERS_CAN_VIEW
: The group members can view the group members list. ALL_MANAGERS_CAN_VIEW
: The group managers can view group members list. ALL_OWNERS_CAN_VIEW
: The group owners can view group members list.