Send feedback
Groups Service
Stay organized with collections
Save and categorize content based on your preferences.
Groups
This service allows scripts to access Google Groups. It can be used to query
information such as a group's email address, or the list of groups in which the
user is a direct member. Here's an example that shows how many groups the
current user is a member of:
var groups = GroupsApp . getGroups ();
Logger . log ( 'You are a member of %s Google Groups.' , groups . length );
Classes
Name Brief description
Group
A group object whose members and those members' roles within the group can be queried.
GroupsApp
This class provides access to Google Groups information.
Role
Possible roles of a user within a group, such as owner or ordinary member.
Properties
Property Type Description
Role
Role
Properties
Property Type Description
OWNER
Enum
The owner of a group.
MANAGER
Enum
The manager of a group.
MEMBER
Enum
A user who is a member of this group but is neither an owner nor a manager.
INVITED
Enum
A user who has been invited to join a group by an owner or manager of the group but who has not
yet accepted the invitation.
PENDING
Enum
A user who has requested to join a group but who has not yet been approved by an owner or
manager.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-04-14 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2023-04-14 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-04-14 UTC."]]