Some update: The suggestion has been great but looks like it doesn't work using 2 legged oauth (2LO). Getting the customerId is not supported in 2LO (not in the available scope)
Using client login or 3LO, I can use [email protected] to get user list of both example.com and example-y.com (which means both domain is part of the same google apps domain managed by [email protected]). Using [email protected] I tried to get user list from otherdomain.com, and it failed (as expected) However when using 2LO, I can get user list of all example.com, example-y.com and otherdomain.com when passing [email protected] as the xoauth_requestor_id (looks like it's ignored, because I can use the API without passing any xoauth_requestor_id). So I guess I have to use 3LO? Is there a way to use 2LO to accomplish what I need? because as far as I know marketplace application is not supposed to use 3LO, maybe I'm wrong on that. - reynard -- 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.
