Hi David,

To move an user to a different OU (including the root), you can follow the
instructions at

http://code.google.com/googleapps/domain/gdata_provisioning_api_v2.0_developers_protocol.html#Updating_an_Organization_User

and send a PUT request to

https://apps-apis.google.com/a/feeds/orguser/2.0/the customerId/the
organization user's email

with the following body:

<?xml version="1.0" encoding="UTF-8"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"; xmlns:apps="
http://schemas.google.com/apps/2006";>
<apps:property name="oldOrgUnitPath" value="current OU" />
<apps:property name="orgUnitPath" value="new OU" />
</atom:entry>

If you want to move the user to the root, just specify "/" as "orgUnitPath".
Hope it helps

Claudio

On Fri, Jul 8, 2011 at 1:26 AM, David Rubert <[email protected]> wrote:

> Hi Michael, thanks for your response. I post an example of the XML I'm
> sending.
>
> PUT https://apps-apis.google.com/a/feeds/orgunit/2.0/<my-customer-id>/%2F
>
> <?xml version=\'1.0\' encoding=\'UTF-8\'?>
>   <ns0:entry xmlns:ns0="http://www.w3.org/2005/Atom"; xmlns:ns1="
> http://schemas.google.com/apps/2006";>
>   <ns1:property name="usersToMove" value="[email protected]" />
>   <ns1:property name="parentOrgUnitPath" value="/" />
> </ns0:entry>'
>
> The response obtained is:
>
> {'status': 400, 'body': '<?xml version="1.0"
> encoding="UTF-8"?>\r\n<AppsForYourDomainErrors>\r\n <error errorCode="1301"
> invalidInput="orgUnit" reason="EntityDoesNotExist" />\r\n
> </AppsForYourDomainErrors>\r\n\r\n', 'reason': 'Bad Request'}
>
>
>
> Thanks for your help.
>
>
>  --
> 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/-/e5qmnJbNlo8J.
>
> 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Apps Domain Information and Management APIs" group.
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