Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

share|improve this question
add comment

2 Answers

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.

share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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