Hi George,

Creating domains and administrators is a manual process and cannot be
automated. But as i suggested earlier, you can use Provisioning API
with your data store (File/DB) containing the administrator
information to automate user account creation once you have the
domains setup.

Here is what you will need to do:

When you register a domain with Google Apps, you will be creating an
administrator as part of the setup. You can implement a data store
(File/DB) to store your admin details with records containing the
following fields:
a) adminUserName ( Created as part of setup )
b) adminPassword
c) domainName

Adding the administrator details to the data store is again a manual
task.

Now, when you receive a request to create a Google Apps user account
(GMail inbox) for say [EMAIL PROTECTED], your program can lookup the
data store for admin details with domainName=mydomain1.com.

Using Provisioning API client libraries, you can then instantiate the
service object using the credentials obtained in previous step and
create the user:
http://code.google.com/apis/apps/libraries_and_samples.html

Using Java client library:
AppsForYourDomainClient client = new AppsForYourDomainClient
(adminName, adminPassword, domainName);
client.createUser( <userdetails> );

Provisioning API client libraries will take care of domain specific
URL construction.

-Anirudh


On Jul 18, 1:28 am, George <[EMAIL PROTECTED]> wrote:
> Hi Anirudh,
>
> Thank you for taking the time to respond.
>
> So, in other words, is there no way I could automate the creation of
> personalised gmail boxes ?
> I have more than 1000 domains for which I want to offer email boxes to
> users and would gladly set my mx records to gmail, but you can
> understand why I absolutely need to automatize everything.
>
> George
>
> On Jul 16, 6:54 pm, "Anirudh (Google)" <[EMAIL PROTECTED]> wrote:
>
> > Hi George,
>
> > Each Google Apps enabled domain allows creation of administrators that
> > can only manage the accounts in that particular domain.
> > The API requests also work with URLs that include the domain name as
> > part of the URL thus making it essential to provide domain name.
>
> > You could probably implement a solution by maintaining a properties
> > files to list the domains and administrators. Authorization tokens can
> > be obtained dynamically by looking up administrators for the domain.
> > URLs can also be created dynamically using the same information. But
> > again, no single administrator can manage accounts belonging to
> > multiple domains.
>
> > -Anirudh
>
> > On Jul 15, 4:34 pm, George <[EMAIL PROTECTED]> wrote:
>
> > > Hi guys,
>
> > > I have a small problem. The entire API defaults to the management of a
> > > single domain with GMail personalized accounts.
>
> > > My problem is that I have several hundred domains i want to include in
> > > the GMail personalized accounts program. Is there a way I can
> > > programatically manage accounts for these domains without manually
> > > entering every single domain in the program ?
>
> > > I need a single Google Apps account to have access to all GMail
> > > domains via API requests.
>
> > > Thanks,
> > > George
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps 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-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to