We are an educational institution who is using the Provisioning API
(using up-to-date .NET libraries) to create hundreds of user accounts
at a time.

I have followed the documentation and am able to create users, suspend
them, etc. without problems when done one-at-a-time.

But, when I attempt to do large batches of users, we get failures
every 10 users or so.  We’ve seen this happen when creating new users,
as well as when we mass-suspended accounts of some users who were
leaving our university.  Attempting to create or suspend the account a
second time a few seconds later works fine.

Considering that the Provisioning API is the recommended means for
mass account creation, are there any limits on how many accounts can
be created per minute?

Our script is linear – it’s not attempting to create 100 users all at
the same time in parallel – it creates one, then moves on to the next
one.


The .NET code is as simple as this (for user creation… for suspending
accounts, it’s similar):

  Dim googleService As New Google.GData.Apps.AppsService(GoogleDomain,
GOOGLEADMINUSERNAME & "@" & GoogleDomain, GOOGLEADMINPASSWORD)

  Dim googleUser As New Google.GData.Apps.UserEntry

  googleUser = googleService.CreateUser(Username, FirstName, LastName,
Password)


The error we get every 10 accounts or so is generic and is occurring
on the “googleUser = googleService…” line above:

  Error: Execution of request failed: 
https://www.google.com/a/feeds/students.towson.edu/user/2.0

The exception source is Google.GData.Apps, and the stack trace
includes this information:

  at Google.GData.Apps.UserService.Insert(Uri feedUri, UserEntry entry)
__   at [my function]


If anyone has any thoughts, it would be greatly appreciated.  This is
wreaking havoc on us as this is a period where we’re getting lots of
new students enrolled, and I’m having to deal with 10+ accounts
failing every day we run this code.

Thanks!

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