Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are 3 methods available for getting users from web or site collection:</p> <ul> <li><a href="http://msdn.microsoft.com/en-us/library/ms772661%28v=office.12%29.aspx" rel="nofollow">GetAllUserCollectionFromWeb</a> - Returns information about the collection of users for the current Web site. </li> <li><a href="http://msdn.microsoft.com/en-us/library/ms772702%28v=office.12%29.aspx" rel="nofollow">GetUserCollectionFromSite</a> - Returns information about the collection of users for the current site collection. </li> <li><a href="http://msdn.microsoft.com/en-us/library/ms774581%28v=office.12%29.aspx" rel="nofollow">GetUserCollectionFromWeb</a> - Returns information about the collection of users for the current Web site. (let me guess, it will only return users explicitly assigned permissions to that web ONLY, but you check it yourself)</li> </ul> <p>Alternatively, in code, there are also 3 properties: AllUsers, SiteUsers and Users. I haven't worked with this particular webservice, but i think (i hope) that the webservice methods should do exactly the same. As someone explains in his <a href="http://netrsc.blogspot.com/2010/04/sharepoint-moss-2007-allusers-vs.html" rel="nofollow">blog post</a>:</p> <blockquote> <p>SPWeb.AllUsers – Gets the collection of user objects that represents all users who are either members of the site or who have browsed to the site as authenticated members of a domain group in the site</p> <p>SPWeb.SiteUsers – Gets the collection of all users that belong to the site collection</p> <p>SPWeb.Users – Gets the collection of user objects that are explicitly assigned permissions on the Web site</p> </blockquote> <p>To get users explicitly for a web that has url <a href="http://sharepointserver/web/subweb" rel="nofollow">http://sharepointserver/web/subweb</a> call webservice from url <a href="http://sharepointserver/web/subweb/_vti_bin/usergroup.asmx" rel="nofollow">http://sharepointserver/web/subweb/_vti_bin/usergroup.asmx</a> If you want to use webservice in context of another web, then use that web's url and append /_vti_bin/usergroup.asmx</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload