Updates an existing resource.

Scopes

You will need authorization for the https://www.googleapis.com/auth/apps.groups.settings scope to make a valid call.

If unset, the scope for this method defaults to https://www.googleapis.com/auth/apps.groups.settings. You can set the scope for this method like this: groupssettings1 --scope <scope> groups update ...

Required Scalar Argument

  • <group-unique-id> (string)
    • The group's email address.

Required Request Value

The request value is a data-structure with various fields. Each field may be a simple scalar or another data-structure. In the latter case it is advised to set the field-cursor to the data-structure's field to specify values more concisely.

For example, a structure like this:

Groups:
  allow-external-members: string
  allow-google-communication: string
  allow-web-posting: string
  archive-only: string
  custom-footer-text: string
  custom-reply-to: string
  custom-roles-enabled-for-settings-to-be-merged: string
  default-message-deny-notification-text: string
  default-sender: string
  description: string
  email: string
  enable-collaborative-inbox: string
  favorite-replies-on-top: string
  include-custom-footer: string
  include-in-global-address-list: string
  is-archived: string
  kind: string
  max-message-bytes: integer
  members-can-post-as-the-group: string
  message-display-font: string
  message-moderation-level: string
  name: string
  primary-language: string
  reply-to: string
  send-message-deny-notification: string
  show-in-group-directory: string
  spam-moderation-level: string
  who-can-add: string
  who-can-add-references: string
  who-can-approve-members: string
  who-can-approve-messages: string
  who-can-assign-topics: string
  who-can-assist-content: string
  who-can-ban-users: string
  who-can-contact-owner: string
  who-can-delete-any-post: string
  who-can-delete-topics: string
  who-can-discover-group: string
  who-can-enter-free-form-tags: string
  who-can-hide-abuse: string
  who-can-invite: string
  who-can-join: string
  who-can-leave-group: string
  who-can-lock-topics: string
  who-can-make-topics-sticky: string
  who-can-mark-duplicate: string
  who-can-mark-favorite-reply-on-any-topic: string
  who-can-mark-favorite-reply-on-own-topic: string
  who-can-mark-no-response-needed: string
  who-can-moderate-content: string
  who-can-moderate-members: string
  who-can-modify-members: string
  who-can-modify-tags-and-categories: string
  who-can-move-topics-in: string
  who-can-move-topics-out: string
  who-can-post-announcements: string
  who-can-post-message: string
  who-can-take-topics: string
  who-can-unassign-topic: string
  who-can-unmark-favorite-reply-on-any-topic: string
  who-can-view-group: string
  who-can-view-membership: string

can be set completely with the following arguments which are assumed to be executed in the given order. Note how the cursor position is adjusted to the respective structures, allowing simple field names to be used most of the time.

  • -r . allow-external-members=stet
    • Identifies whether members external to your organization can join the group. Possible values are:
      • true: G Suite users external to your organization can become members of this group.
      • false: Users not belonging to the organization are not allowed to become members of this group.
  • allow-google-communication=dolor
    • Deprecated. Allows Google to contact administrator of the group.
      • true: Allow Google to contact managers of this group. Occasionally Google may send updates on the latest features, ask for input on new features, or ask for permission to highlight your group.
      • false: Google can not contact managers of this group.
  • allow-web-posting=duo
    • Allows posting from web. Possible values are:
      • true: Allows any member to post to the group forum.
      • false: Members only use Gmail to communicate with the group.
  • archive-only=vero
    • Allows the group to be archived only. Possible values are:
      • true: Group is archived and the group is inactive. New messages to this group are rejected. The older archived messages are browseable and searchable.
      • If true, the whoCanPostMessage property is set to NONE_CAN_POST.
      • If reverted from true to false, whoCanPostMessages is set to ALL_MANAGERS_CAN_POST.
      • false: The group is active and can receive messages.
      • When false, updating whoCanPostMessage to NONE_CAN_POST, results in an error.
  • custom-footer-text=vero
    • Set the content of custom footer text. The maximum number of characters is 1,000.
  • custom-reply-to=invidunt
    • An email address used when replying to a message if the replyTo property is set to REPLY_TO_CUSTOM. This address is defined by an account administrator.
      • When the group's ReplyTo property is set to REPLY_TO_CUSTOM, the customReplyTo property holds a custom email address used when replying to a message.
      • If the group's ReplyTo property is set to REPLY_TO_CUSTOM, the customReplyTo property must have a text value or an error is returned.
  • custom-roles-enabled-for-settings-to-be-merged=stet
    • Specifies whether the group has a custom role that's included in one of the settings being merged. This field is read-only and update/patch requests to it are ignored. Possible values are:
      • true
      • false
  • default-message-deny-notification-text=vero
    • 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. Note: Requires sendMessageDenyNotification property to be true.
  • default-sender=elitr
    • Default sender for members who can post messages as the group. Possible values are: - DEFAULT_SELF: By default messages will be sent from the user - GROUP: By default messages will be sent from the group
  • description=lorem
    • Description of the group. This property value may be an empty string if no group description has been entered. If entered, the maximum group description is no more than 300 characters.
  • email=diam
    • The group's email address. This property can be updated using the Directory API. Note: Only a group owner can change a group's email address. A group manager can't do this. When you change your group's address using the Directory API or the control panel, you are changing the address your subscribers use to send email and the web address people use to access your group. People can't reach your group by visiting the old address.
  • enable-collaborative-inbox=no
    • Specifies whether a collaborative inbox will remain turned on for the group. Possible values are:
      • true
      • false
  • favorite-replies-on-top=ipsum
    • Indicates if favorite replies should be displayed above other replies.
      • true: Favorite replies will be displayed above other replies.
      • false: Favorite replies will not be displayed above other replies.
  • include-custom-footer=accusam
    • Whether to include custom footer. Possible values are:
      • true
      • false
  • include-in-global-address-list=takimata
    • Enables the group to be included in the Global Address List. For more information, see the help center. Possible values are:
      • true: Group is included in the Global Address List.
      • false: Group is not included in the Global Address List.
  • is-archived=consetetur
    • Allows the Group contents to be archived. Possible values are:
      • true: Archive messages sent to the group.
      • false: Do not keep an archive of messages sent to this group. If false, previously archived messages remain in the archive.
  • kind=voluptua.
    • The type of the resource. It is always groupsSettings#groups.
  • max-message-bytes=29
    • Deprecated. The maximum size of a message is 25Mb.
  • members-can-post-as-the-group=erat
    • Enables members to post messages as the group. Possible values are:
      • 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. Note: When true, any message moderation settings on individual users or new members do not apply to posts made on behalf of the group.
      • false: Members can not post in behalf of the group's email address.
  • message-display-font=consetetur
    • Deprecated. The default message display font always has a value of "DEFAULT_FONT".
  • message-moderation-level=amet.
    • 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 whoCanPostMessage is set to ANYONE_CAN_POST, we recommend the messageModerationLevel be set to MODERATE_NON_MEMBERS to protect the group from possible spam. When memberCanPostAsTheGroup is true, any message moderation settings on individual users or new members will not apply to posts made on behalf of the group.
  • name=sed
    • Name of the group, which has a maximum size of 75 characters.
  • primary-language=takimata
    • The primary language for group. For a group's primary language use the language tags from the G Suite languages found at G Suite Email Settings API Email Language Tags.
  • reply-to=dolores
    • Specifies who receives the default reply. Possible values are:

      • REPLY_TO_CUSTOM: For replies to messages, use the group's custom email address. When the group's ReplyTo property is set to REPLY_TO_CUSTOM, the customReplyTo property holds the custom email address used when replying to a message. If the group's ReplyTo property is set to REPLY_TO_CUSTOM, 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=gubergren
        • Allows a member to be notified if the member's message to the group is denied by the group owner. Possible values are:
      • true: When a message is rejected, send the deny message notification to the message author. The defaultMessageDenyNotificationText property is dependent on the sendMessageDenyNotification property being true.

      • false: When a message is rejected, no notification is sent.

      • show-in-group-directory=et
        • Deprecated. This is merged into the new whoCanDiscoverGroup setting. Allows the group to be visible in the Groups Directory. Possible values are:
      • true: All groups in the account are listed in the Groups directory.
      • false: All groups in the account are not listed in the directory.
      • spam-moderation-level=accusam
        • 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-add=voluptua.
        • Deprecated. This is merged into the new whoCanModerateMembers setting. Permissions to add members. Possible values are:
      • ALL_MEMBERS_CAN_ADD: Managers and members can directly add new members.
      • ALL_MANAGERS_CAN_ADD: Only managers can directly add new members. this includes the group's owner.
      • ALL_OWNERS_CAN_ADD: Only owners can directly add new members.
      • NONE_CAN_ADD: No one can directly add new members.
      • who-can-add-references=dolore
        • Deprecated. This functionality is no longer supported in the Google Groups UI. The value is always "NONE".
      • who-can-approve-members=dolore
        • Specifies who can approve members who ask to join groups. This permission will be deprecated once it is merged into the new whoCanModerateMembers setting. Possible values are:
      • ALL_MEMBERS_CAN_APPROVE
      • ALL_MANAGERS_CAN_APPROVE
      • ALL_OWNERS_CAN_APPROVE
      • NONE_CAN_APPROVE
      • who-can-approve-messages=dolore
        • Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can approve pending messages in the moderation queue. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • OWNERS_ONLY
      • NONE
      • who-can-assign-topics=voluptua.
        • Deprecated. This is merged into the new whoCanAssistContent setting. Permission to assign topics in a forum to another user. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • MANAGERS_ONLY
      • OWNERS_ONLY
      • NONE
      • who-can-assist-content=amet.
        • Specifies who can moderate metadata. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • MANAGERS_ONLY
      • OWNERS_ONLY
      • NONE
      • who-can-ban-users=ea
        • Specifies who can deny membership to users. This permission will be deprecated once it is merged into the new whoCanModerateMembers setting. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • OWNERS_ONLY
      • NONE
      • who-can-contact-owner=sadipscing
        • 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-delete-any-post=lorem
        • Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can delete replies to topics. (Authors can always delete their own posts). Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • OWNERS_ONLY
      • NONE
      • who-can-delete-topics=invidunt
        • Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can delete topics. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • OWNERS_ONLY
      • NONE
      • who-can-discover-group=no
        • 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-enter-free-form-tags=est
        • Deprecated. This is merged into the new whoCanAssistContent setting. Permission to enter free form tags for topics in a forum. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • MANAGERS_ONLY
      • OWNERS_ONLY
      • NONE
      • who-can-hide-abuse=at
        • Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can hide posts by reporting them as abuse. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • OWNERS_ONLY
      • NONE
      • who-can-invite=sed
        • Deprecated. This is merged into the new whoCanModerateMembers setting. Permissions to invite new members. Possible values are:
      • ALL_MEMBERS_CAN_INVITE: Managers and members can invite a new member candidate.
      • ALL_MANAGERS_CAN_INVITE: Only managers can invite a new member. This includes the group's owner.
      • ALL_OWNERS_CAN_INVITE: Only owners can invite a new member.
      • NONE_CAN_INVITE: No one can invite a new member candidate.
      • who-can-join=sit
        • Permission to join group. Possible values are:
      • ANYONE_CAN_JOIN: Anyone in the account domain can join. This includes accounts with multiple domains.
      • ALL_IN_DOMAIN_CAN_JOIN: Any Internet user who is outside your domain can access your Google Groups service and view the list of groups in your Groups directory. Warning: Group owners can add external addresses, outside of the domain to their groups. They can also allow people outside your domain to join their groups. If you later disable this option, any external addresses already added to users' groups remain in those groups.
      • 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=et
        • Permission to leave the group. Possible values are:
      • ALL_MANAGERS_CAN_LEAVE
      • ALL_MEMBERS_CAN_LEAVE
      • NONE_CAN_LEAVE
      • who-can-lock-topics=tempor
        • Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can prevent users from posting replies to topics. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • OWNERS_ONLY
      • NONE
      • who-can-make-topics-sticky=aliquyam
        • Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can make topics appear at the top of the topic list. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • OWNERS_ONLY
      • NONE
      • who-can-mark-duplicate=ipsum
        • Deprecated. This is merged into the new whoCanAssistContent setting. Permission to mark a topic as a duplicate of another topic. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • MANAGERS_ONLY
      • OWNERS_ONLY
      • NONE
      • who-can-mark-favorite-reply-on-any-topic=et
        • Deprecated. This is merged into the new whoCanAssistContent setting. Permission to mark any other user's post as a favorite reply. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • MANAGERS_ONLY
      • OWNERS_ONLY
      • NONE
      • who-can-mark-favorite-reply-on-own-topic=sanctus
        • Deprecated. This is merged into the new whoCanAssistContent setting. Permission to mark a post for a topic they started as a favorite reply. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • MANAGERS_ONLY
      • OWNERS_ONLY
      • NONE
      • who-can-mark-no-response-needed=lorem
        • Deprecated. This is merged into the new whoCanAssistContent setting. Permission to mark a topic as not needing a response. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • MANAGERS_ONLY
      • OWNERS_ONLY
      • NONE
      • who-can-moderate-content=est
        • Specifies who can moderate content. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • OWNERS_ONLY
      • NONE
      • who-can-moderate-members=sed
        • Specifies who can manage members. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • OWNERS_ONLY
      • NONE
      • who-can-modify-members=diam
        • Deprecated. This is merged into the new whoCanModerateMembers setting. Specifies who can change group members' roles. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • OWNERS_ONLY
      • NONE
      • who-can-modify-tags-and-categories=dolores
        • Deprecated. This is merged into the new whoCanAssistContent setting. Permission to change tags and categories. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • MANAGERS_ONLY
      • OWNERS_ONLY
      • NONE
      • who-can-move-topics-in=dolores
        • Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can move topics into the group or forum. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • OWNERS_ONLY
      • NONE
      • who-can-move-topics-out=et
        • Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can move topics out of the group or forum. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • OWNERS_ONLY
      • NONE
      • who-can-post-announcements=sed
        • Deprecated. This is merged into the new whoCanModerateContent setting. Specifies who can post announcements, a special topic type. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • OWNERS_ONLY
      • NONE
      • who-can-post-message=no
        • 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 whoCanPostMessage is set to ANYONE_CAN_POST, we recommend the messageModerationLevel be set to MODERATE_NON_MEMBERS to protect the group from possible spam.
      • who-can-take-topics=et
        • Deprecated. This is merged into the new whoCanAssistContent setting. Permission to take topics in a forum. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • MANAGERS_ONLY
      • OWNERS_ONLY
      • NONE
      • who-can-unassign-topic=elitr
        • Deprecated. This is merged into the new whoCanAssistContent setting. Permission to unassign any topic in a forum. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • MANAGERS_ONLY
      • OWNERS_ONLY
      • NONE
      • who-can-unmark-favorite-reply-on-any-topic=sed
        • Deprecated. This is merged into the new whoCanAssistContent setting. Permission to unmark any post from a favorite reply. Possible values are:
      • ALL_MEMBERS
      • OWNERS_AND_MANAGERS
      • MANAGERS_ONLY
      • OWNERS_ONLY
      • NONE
      • who-can-view-group=no
        • 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.
      • who-can-view-membership=nonumy
        • 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.

About Cursors

The cursor position is key to comfortably set complex nested structures. The following rules apply:

  • The cursor position is always set relative to the current one, unless the field name starts with the . character. Fields can be nested such as in -r f.s.o .
  • The cursor position is set relative to the top-level structure if it starts with ., e.g. -r .s.s
  • You can also set nested fields without setting the cursor explicitly. For example, to set a value relative to the current cursor position, you would specify -r struct.sub_struct=bar.
  • You can move the cursor one level up by using ... Each additional . moves it up one additional level. E.g. ... would go three levels up.

Optional Output Flags

The method's return value a JSON encoded structure, which will be written to standard output by default.

  • -o out
    • out specifies the destination to which to write the server's result to. It will be a JSON-encoded structure. The destination may be - to indicate standard output, or a filepath that is to contain the received bytes. If unset, it defaults to standard output.

Optional General Properties

The following properties can configure any call, and are not specific to this method.

  • -p alt=string

    • Data format for the response.
  • -p fields=string

    • Selector specifying which fields to include in a partial response.
  • -p key=string

    • API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • -p oauth-token=string

    • OAuth 2.0 token for the current user.
  • -p pretty-print=boolean

    • Returns response with indentations and line breaks.
  • -p quota-user=string

    • An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
  • -p user-ip=string

    • Deprecated. Please use quotaUser instead.