Problems with delegation

131 views
Skip to first unread message

Ian Davidson

unread,
Feb 20, 2015, 10:38:48 AM2/20/15
to google-ap...@googlegroups.com
Hi All,
I'm having difficulties creating and working with delegates using the latest gam after a recent gdata upgrade.  I have no problem adding and deleting aliases or other read/write operations.
Has anyone else encountered these issues?.  I have tried regenerating oAuth and Json files - it just seems to be a problem with delegate operations.
Thanks in advance for any help
Ian

Giving exampl...@example.com delegate access to exampl...@example.com (1 of 1)
Traceback (most recent call last):
  File "./gam.py", line 7741, in <module>
    doDelegates(users)
  File "./gam.py", line 923, in doDelegates
    callGData(service=emailsettings, function=u'CreateDelegate', throw_errors=[600, 1000, 1001], delegate=use_delegate_address, delegator=delegator)
  File "./gam.py", line 344, in callGData
    method = getattr(service, function)
AttributeError: 'EmailSettingsService' object has no attribute 'CreateDelegate'


Versions info:
Dito GAM 3.42 - http://git.io/gam
Python 2.7.6 64-bit final
google-api-python-client 1.3.1
Darwin-14.1.0-x86_64-i386-64bit x86_64
Path: /usr/local/gam/

Darrin Tams

unread,
Feb 20, 2015, 5:58:29 PM2/20/15
to google-ap...@googlegroups.com
Hello Ditto

I'm having the same results with the "delegate to" command. "show delegates" does appear to work.

PS C:\gam> .\gam.exe user <username> delegate to <othe...@domain.org>
Giving <othe...@domain.org> delegate access to <username>@svvsd.org (1 of 1)
.\gam.exe : Temp error. Backing off 16 seconds...attempt 5/10
At line:1 char:1
+ .\gam.exe user <username> delegate to <othe...@domain.org>
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Temp error. Bac......attempt 5/10:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
Temp error. Backing off 32 seconds...attempt 6/10
Temp error. Backing off 60 seconds...attempt 7/10
Temp error. Backing off 60 seconds...attempt 8/10
Temp error. Backing off 60 seconds...attempt 9/10
Temp error. Backing off 60 seconds...attempt 10/10
 - giving up.


PS C:\gam> .\gam.exe
Dito GAM 3.41 - http://git.io/gam
Python 2.7.8 64-bit final
google-api-python-client 1.2
Windows-2012Server-6.2.9200 AMD64
Path: C:\gam\

Thanks
Darrin

Ian Davidson

unread,
Feb 23, 2015, 4:16:59 AM2/23/15
to google-ap...@googlegroups.com
Hello
I'm having problems with the show all delegates command too. Here are the errors.

./gam.py all users show delegates
Getting all users in Google Apps account (may take some time on a large account)...
Got 59 users...done getting 50 users.
Getting delegates for exa...@example.com...
Traceback (most recent call last):
  File "./gam.py", line 7619, in <module>
    getDelegates(users)
  File "./gam.py", line 993, in getDelegates
    delegates = callGData(service=emailsettings, function=u'GetDelegates', soft_errors=True, delegator=user)
  File "./gam.py", line 344, in callGData
    method = getattr(service, function)
AttributeError: 'EmailSettingsService' object has no attribute 'GetDelegates'

Reply all
Reply to author
Forward
0 new messages