Thanks everyone for the reply!
Rob, that sounds like a clever idea, I'll try that.
Emmanuel, the use case for me is this: I'm developing marketplace
application, when a domain install our application we create a domain
on our side that corresponds to their primary domain, however after
the installation we don't have the information about all their
subdomains. The application will be installed for all their
subdomains, so users from example-y.com can see the link to our
application but when they click the link they will come as example-
y.com so we just need to handle that case, associating example-y.com
with example.com.

- reynard

On Mar 26, 2:40 pm, Emmanuel Dreux <[email protected]> wrote:
> Hi Reynard,
>
> what are you trying to do?
> I'm in you situation and developping applications using the multi domain
> provisionning api.
> Subdomains can be disjoined.
>
> My primary domain is for example mydomain.dom.
> And I have several "subdomains" like subdomain.com, somethingelse.com etc.
>
> Using the Multidomain provisionning apis, I just have to logon using a
> primary domain administrator.
> Then, in each api call, I pass the name of the domain that I'm willing to
> manage (create user, delete user etc...).
>
> Regards,
> Emmanuel Dreuxhttp://www.bcpsoft.frhttp://www.ilinfo.fr
>
> 2011/3/26 Robert Norris <[email protected]>
>
>
>
>
>
>
>
> > One possible workaround is to use the account customer ID request:
>
> >http://code.google.com/googleapps/domain/gdata_provisioning_api_v2.0_...
>
> > 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.

-- 
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