gam all users show delegates failed

540 views
Skip to first unread message

Radomil

unread,
Sep 14, 2013, 3:41:12 PM9/14/13
to google-ap...@googlegroups.com
Hello,

command "gam all users show delegates" failed:
Getting delegates for a...@zzz.xx...
...
Getting delegates for m...@zzz.xx...
Traceback (most recent call last):
  File "/tmp/gam/gam.py", line 5989, in <module>
    getDelegates(users)
  File "/tmp/gam/gam.py", line 893, in getDelegates
    print "Delegator: %s\n Delegate: %s\n Status: %s\n Delegate Email: %s\n Delegate ID: %s\n" % (user, delegate['delegate'], delegate['status'], delegate['address'], delegate['delegationId'])
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 13: ordinal not in range(128)

But direct query with one user (on which previous command failed) works OK:
gam user m...@zzz.xx show delegates
Getting delegates for m...@zzz.xx...
Delegator: mmm
 Delegate: sample name1
 Status: ACCEPTED
 Delegate Email: sample...@zzz.xx
 Delegate ID: sample...@zzz.xx
...

I'm using version:
Dito GAM 3.01, Python 2.7.3 64-bit final, google-api-python-client 1.2, Linux-3.2.0-53-generic-x86_64-with-Ubuntu-12.04-precise x86_64

Thanks for great product, with regards
Radomil

Brigitte Krolian

unread,
Aug 30, 2021, 12:51:25 PM8/30/21
to GAM for Google Workspace
I have a need to show delegates for all as well. Does anyone know how to do this? My active user export, using the following command line, works perfectly: 

gam.exe print users firstname lastname username query "IsSuspended=False" > c:\gam\users.csv

But adding "show delegates" results in error, and I haven't been able to find a query string that works. 

Thanks in advance for any help! 

Ross Scroggs

unread,
Aug 30, 2021, 1:37:52 PM8/30/21
to google-ap...@googlegroups.com
Brigitte,

gam query "isSuspended=False" print delegates > c:\gam\usersdelegates.csv


Ross


--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/3f319fa8-b61b-4a10-97ba-25e9aad4db52n%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages