mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-08 05:33:34 +00:00
get all groups for users with >200
This commit is contained in:
8
gam.py
8
gam.py
@ -4831,10 +4831,10 @@ def doGetUserInfo(user_email=None):
|
||||
for alias in user[u'nonEditableAliases']:
|
||||
print u' %s' % alias
|
||||
if getGroups:
|
||||
groups = callGAPI(service=cd.groups(), function=u'list', userKey=user_email)
|
||||
if u'groups' in groups:
|
||||
print u'Groups:'
|
||||
for group in groups[u'groups']:
|
||||
groups = callGAPIpages(service=cd.groups(), function=u'list', items=u'groups', userKey=user_email, fields=u'groups(name,email),nextPageToken')
|
||||
if len(groups) > 0:
|
||||
print u'Groups: (%s)' % len(groups)
|
||||
for group in groups:
|
||||
print u' %s <%s>' % (group[u'name'], group[u'email'])
|
||||
if getLicenses:
|
||||
print u'Licenses:'
|
||||
|
Reference in New Issue
Block a user