Source code for gsuite.admin.resources

from conftest import gsuite_client


[docs]def list_users(): return gsuite_client.list_users()
[docs]def list_groups(): return gsuite_client.list_groups()
[docs]def list_members_of_group(group): return gsuite_client.list_members_of_group(group)
[docs]def list_groups_and_members(): return [ {**group, "members": list_members_of_group(group["email"])} for group in list_groups() ]