sym.sdk.integrations.google.list_groups

sym.sdk.integrations.google.list_groups(domain: Optional[str] = None) List[dict]

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

Parameters

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.

Returns

A list of dictionaries, with each dictionary representing a Google Group. See Google’s docs for the dictionary structure: https://developers.google.com/admin-sdk/directory/reference/rest/v1/groups#Group