Hi Maxim,

The Provisioning API has no batch user creation method, what we recommend is
using multiple threads to run requests in parallel.
The documentation has more details:

http://code.google.com/googleapps/domain/gdata_provisioning_api_v2.0_developers_protocol.html#Limits

Thanks
Claudio

On Thu, Jun 16, 2011 at 12:15 PM, Maxim Volgin <[email protected]> wrote:

> i have to add a few thousand users to a few hundred groups, it is the only
> way to do so?..
>
>  for (GenericEntry group : groups.getEntries()) {
> for (UserEntry user : users.getEntries()) {
>  groupService.addMemberToGroup(group.getAllProperties().get("groupId"),
> user.getLogin().getUserName());
>
> it's gonna be about two million api calls or more, not very efficient
> maybe there is another way to add multiple users to groups, like providing
> lists of users/groups as parameters?..
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Apps Domain Information and Management APIs" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-apps-mgmt-apis/-/MFPhMHRcT8wJ.
> 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