One possible workaround is to use the account customer ID request: http://code.google.com/googleapps/domain/gdata_provisioning_api_v2.0_developers_protocol.html#Retrieving_a_Customer_ID
The response has the primary domain name in the "name" property even if the request is made using a OAuth/ClientLogin credentials for the secondary domain). Comparing two arbitrary domains, assuming you have credentials for both, then becomes a matter of pulling the customerId for both and comparing. Disclaimer: This is based on my reading of the docs and a couple of small tests. I have not done this myself; I'm a domain admin, not an application developer. Cheers, Rob. On Fri, Mar 25, 2011 at 6:43 AM, Reynard <[email protected]> wrote: > Hi, > > I have this scenario where an organization have multiple domains under the > primary domains. as described here > http://www.google.com/support/a/bin/answer.py?answer=182452 > > example.com > sales.example.com > example-y.com > > So [email protected] and [email protected] and [email protected] are > different persons. > > I have tested that when example.com installs a marketplace application, it > will be installed for sales.example.com as well. > > How does the application detect that sales.example.com and example-y.comare > indeed part of the same google apps domain? > Is there an API to query all the domains under a primary google apps > domain? > > Thanks, > - 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. > -- 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.
