1

Is there a way to add bunch of users to a SP Group at once using web service?

http://msdn.microsoft.com/en-us/library/ms774538(v=office.12).aspx

I have several variables (varApprovers; varTeamLeads; varVPs; varManagers) and would like to add these to a SP Group.

http:///_vti_bin/usergroup.asmx AddUserCollectionToGroup method

2

I believe that the UserGroup.AddUserCollectionToGroup web service call would work. The example in the link illustrates how a group of users (specified in a XML list) can be loaded into an UserGroup.

0

The built-in web services only provide the functionality to add one user at a time.

You could, however, write your own web service that sites in your SharePoint environment to handle these type of requests.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.