Hi John, The PHP client library for the Provisioning API doesn't implement the methods used to manage Organization Units. What you are missing is the method to move users to a different OU:
http://code.google.com/googleapps/domain/gdata_provisioning_api_v2.0_developers_protocol.html#Moving_Users_to_an_Organization_Unit If you want to implement it yourself, you have to construct a PUT request to: https://apps-apis.google.com/a/feeds/orgunit/2.0/the customerId/full organization unit's path The XML body of the request should look like: <atom:entry xmlns:atom='http://www.w3.org/2005/Atom' xmlns:apps=' http://schemas.google.com/apps/2006'> ... <apps:property name="name" value="new organization unit's name" /> <apps:property name="description" value="new organization description" /> <apps:property name="parentOrgUnitPath" value="new parent path/organization unit" /> <apps:property name="blockInheritance" value="true or false" /> <apps:property name="usersToMove" value="[email protected], [email protected], [email protected]" /> </atom:entry> Hope it helps Claudio On Tue, May 24, 2011 at 5:08 PM, John Sopko <[email protected]> wrote: > I am using the Zend Google Apps Provisioning php API. I can create users > with the > createuser() function, they are created at the top level domain. > We have many sub-organizations, (not domains), under the primary domain. I > would > like to place the user in one of the sub-organizations. The createuser > function > does not have a parameter for this. I could not find a function in the Zend > Google Apps Provisioning to move a user to an organization. Is there a way > to > do this? Thanks! > > -- > 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. > -- 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.
