Moving a user back to parent ou, python api

40 views
Skip to first unread message

Kua

unread,
Aug 6, 2012, 3:35:17 PM8/6/12
to google-app...@googlegroups.com
Hi All,

I have working code that moves a user into a sub-organizaton, usingouclient.UpdateOrgUser(customer_id, newlogin, org_unit_path)
where org_unit_path is 'test'.  However, when I try to use that same code and specify the parent OU, i.e  domain.edu I get
an error:

raceback (most recent call last):
  File "/tmp/move2berk.py", line 84, in ?
    ouclient.UpdateOrgUser(customer_id, login, 'domain.edu')
  File "/home/michele/MYA.gmail/mya/lib/python/gdata/apps/organization/client.py", line 418, in update_org_user
    uri=self.MakeOrganizationUnitOrguserProvisioningUri(
  File "/home/michele/MYA.gmail/mya/lib/python/gdata/client.py", line 730, in update
    desired_class=entry.__class__, **kwargs)
  File "/home/michele/MYA.gmail/mya/lib/python/gdata/client.py", line 319, in request
    RequestError)
RequestError: Server responded with: 400, <?xml version="1.0" encoding="UTF-8"?>
<AppsForYourDomainErrors>
  <error errorCode="1301" invalidInput="orgUserOrgUnit" reason="EntityDoesNotExist" />
</AppsForYourDomainErrors>

Any help would be much appreciated.


Reply all
Reply to author
Forward
0 new messages