class GroupsApp method .getGroupByEmail()

GroupsApp is the Apps Script service.

.getGroupByEmail() is the method name you will see after a dot in your code.

What it does

Loads a Google Group by its email address.

Why it's used

  • Check membership or settings for a groups@ address.
  • Automate onboarding for a specific Google Group.

Common errors

  • Forgetting parentheses on getGroupByEmail. Write GroupsApp.getGroupByEmail(), not GroupsApp.getGroupByEmail or getGroupByEmail by itself.
  • Skipping dots between chained calls. Each step needs a dot, like GroupsApp.getGroupByEmail().
  • Adding spaces where they do not belong. Write GroupsApp.getGroupByEmail(), not GroupsApp .getGroupByEmail(), GroupsApp.getGroupByEmail (), or GroupsApp . getGroupByEmail().
  • Wrong capitalization. Use GroupsApp and getGroupByEmail, not groupsapp or getgroupbyemail.

Explore

Related methods

  • .getGroups()

    Returns the Google Groups the user belongs to.

Better Sheets tutorials

No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.

Related blog posts

Written guides about GroupsApp.getGroupByEmail().

Browse the blog