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.