Hello,

I am trying to use the gdata API to create new accounts and mailing
lists in Google Apps Education Edition. I followed the very simple
Python example in the docs as below.

DEFAULT_QUOTA_LIMIT=7000
import gdata.apps.service
service = gdata.apps.service.AppsService(email='cilkay',
domain='mydomain.com', password='mypassword')
service.ProgrammaticLogin()
service.CreateUser('jdoe', 'John', 'Doe', 'soopersekrit',
quota_limit=DEFAULT_QUOTA_LIMIT, password_hash_function=None)

When I executed the above, I got:

<class 'gdata.apps.service.AppsForYourDomainException'>: {'status': 403,
'body': '<HTML>\n<HEAD>\n<TITLE>You are not authorized to access this
API.</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>You
are not authorized to access this API.</H1>\n<H2>Error
403</H2>\n</BODY>\n</HTML>\n', 'reason': 'You are not authorized to
access this API.'}

I have "Enable provisioning API" checked in the user account settings
and [EMAIL PROTECTED] is the administrator for the domain. There are
other reports of this here:
<http://groups.google.com/group/google-apps-apis/search?group=google-apps-apis&q=%27You+are+not+authorized+to+access+this+API.%27&qt_g=Search+this+group>
but none were helpful. Why am I being told I'm not authorized to access
this API?
-- 
Regards,

Clifford Ilkay
Dinamis
1419-3266 Yonge St.
Toronto, ON
Canada  M4N 3P6

<http://dinamis.com>
+1 416-410-3326

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to