Optional[str] = None) List[dict]

Returns a list of all groups for the Google Workspace account or given domain.


domain – An optional domain to only get groups from the given domain (e.g. a secondary domain). If not provided, this method will retrieve all groups associated with all domains for this Google Workspace account.


A list of dictionaries, with each dictionary representing a Google Group. See Google’s docs for the dictionary structure: