According to:

http://support.google.com/a/bin/answer.py?hl=en&answer=182081 *
*

Email and contact delegation does not work across domains. The workaround 
is to give the user who needs access an alias in the same domain as the 
mailbox they need access to and then perform the delegation against the 
alias. I've been using this technique since December and it's worked 
without issue. However, I'm now finding that it throws a 100 Error when 
done with my GAM tool. As far as I can tell, nothing else has changed with 
the delegation. My code can be viewed at:

http://code.google.com/p/google-apps-manager/source/browse/trunk/gam.py#266 

here's the program output including debugging. In the example, 
secondary.ditoapps.com is a secondary GA domain, ditoapps.com is the 
primary. [email protected] has an alias of [email protected]. 
[email protected] is the primary address of the mailbox 
[email protected] needs access to:

C:\gam>gam user [email protected] delegate to 
[email protected]
om
Giving [email protected] delegate access to 
[email protected]
 (1 of 1)
send: 'POST 
https://apps-apis.google.com/a/feeds/emailsettings/2.0/secondary.dit
oapps.com/test/delegation HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: 
apps-ap
is.google.com\r\nContent-Length: 216\r\nContent-Type: 
application/atom+xml\r\nAu
thorization: OAuth realm="", oauth_nonce="xxx", oauth_timestamp="xxx
", oauth_consumer_key="xxx.apps.googleusercontent.com", oauth_signature
_method="HMAC-SHA1", oauth_version="1.0", oauth_token="xxx
xxx", oauth_signature="xxx"\r\nU
ser-Agent: Google Apps Manager 2.2 / [email protected] (Jay Lee) / Python 
2.7.2
final / Windows-7-6.1.7601-SP1 AMD64 / GData-Python 
2.0.14+20110902+custom_mods\
r\n\r\n'
send: '<?xml version=\'1.0\' encoding=\'UTF-8\'?>\n<ns0:entry 
xmlns:ns0="http://
www.w3.org/2005/Atom" 
xmlns:ns1="http://schemas.google.com/apps/2006";><ns1:prope
rty name="address" value="[email protected]" /></ns0:entry>'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'
header: Content-Type: text/xml
header: Date: Wed, 29 Feb 2012 16:37:56 GMT
header: Expires: Wed, 29 Feb 2012 16:37:56 GMT
header: Cache-Control: private, max-age=0
header: X-Content-Type-Options: nosniff
header: X-Frame-Options: SAMEORIGIN
header: X-XSS-Protection: 1; mode=block
header: Server: GSE
header: Transfer-Encoding: chunked
Traceback (most recent call last):
  File "gam.py", line 3505, in <module>
    elif command == 'sig' or command == 'signature':
  File "gam.py", line 290, in doDelegates
    emailsettings.CreateDelegate(delegate=delegate, delegator=user)
  File "gdata\apps\emailsettings\service.pyo", line 326, in CreateDelegate
  File "gdata\apps\service.pyo", line 532, in _PostProperties
gdata.apps.service.AppsForYourDomainException: {'status': 500, 'body': 
'<?xml ve
rsion="1.0" encoding="UTF-8"?>\r\n<AppsForYourDomainErrors>\r\n  <error 
errorCod
e="1000" invalidInput="" reason="UnknownError" 
/>\r\n</AppsForYourDomainErrors>\
r\n\r\n', 'reason': 'Internal Server Error'}

C:\gam>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-apps-mgmt-apis/-/V1Z4xdsMnxoJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Reply via email to