Skip to content

Commit

Permalink
fix(groups): limit group_key username to first 60 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 committed Dec 2, 2024
1 parent 7bc0a67 commit a6f9327
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dispatch/plugins/dispatch_google/groups/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ def create(
):
"""Creates a new Google Group."""
client = get_service(self.configuration, "admin", "directory_v1", self.scopes)
group_key = f"{name.lower()}@{self.configuration.google_domain}"
# note: group username is limited to 60 characters
group_key = f"{name.lower()[:60]}@{self.configuration.google_domain}"

if not description:
description = "Group automatically created by Dispatch."
Expand Down

0 comments on commit a6f9327

Please sign in to comment.