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

link|improve this question
duplicate of stackoverflow.com/questions/7159646/… – Rich Bennema Aug 24 '11 at 20:27
feedback

1 Answer

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()
link|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
feedback

Your Answer

 
or
required, but never shown

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