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

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 stackoverflow.com/questions/7159646/… –  Rich Bennema Aug 24 '11 at 20:27

1 Answer 1

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

 
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.