googleworkspace / googleworkspace/apps-script-samples

vacation calendar throws error Cannot find a group named: team@xyz.com (line 39, file "Code")Dismiss

Open
#135 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.2k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

Expected Behavior

The members of the team@ group email get a shared calendar
Sample URL:

Description:
Here are the vars after sec cleansing
var TEAM_CALENDAR_ID = 'xxxxxxx418@group.calendar.google.com';
// Set the email address of the Google Group that contains everyone in the team.
// Ensure the group has less than 500 members to avoid timeouts.
var GROUP_EMAIL = 'team@xyz.com';

Actual Behavior

Throws error
team@xyz does not get a shared calendar

Steps to Reproduce the Problem

1.enter TEAM_CALENDAR_ID shared calndar ID
1.enter GROUP_EMAIL group email
1.run set up function
Click the Select function dropdown and select setup.
Click the Run button (►).
I did this When prompted, click the Review permissions button.
I did this Select your G Suite account from the list.
I did this Click the Allow button.
I got this: Cannot find a group named: team@xyz.com (line 39, file "Code")Dismiss

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Find the sample containing TEAM_CALENDAR_ID, GROUP_EMAIL, and the setup function, then inspect the group lookup around line 39. Run setup with the reported group and calendar values and compare the lookup failure with the expected shared-calendar behavior. Done means the team group can be resolved and its members receive the shared calendar.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.