SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using /_vti_bin/usergroup.asmx service and getting the userinfo using GetAllUserCollectionFromWeb(). But i need to pass in the specific site and need to get the users info of that site alone. Which sharepoint service to use? How to get that?

Thanx in advance

share|improve this question
duplicate of… – Rich Bennema Aug 24 '11 at 20:27

I think that after creating the web service instance You should change the Url property to "http://YourSpecificSite/_vti_bin/usergroup.asmx" and then call the GetAllUserCollectionFromWeb() method.

wsUsersGroups.UserGroup _WSUsersGroups = new wsUsersGroups.UserGroup();
_WSUsersGroups.Url = "http://YourSpecificSite/_vti_bin/usergroup.asmx";
XmlNode ndUsers = _WSUsersGroups.GetAllUserCollectionFromWeb()
share|improve this answer
+1 just add the /_vti_bin/usergroup.asmx on the end of your site collection or sub site URL. – Kit Menke Aug 23 '11 at 13:37

Your Answer


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.