Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SharePoint - Get a list of current users

Tags:

sharepoint

What's the best way to get a list of users that are assigned to a SharePoint portal?

like image 513
Ryan Smith Avatar asked Nov 30 '08 22:11

Ryan Smith


People also ask

How do I get a list of users in SharePoint?

The SharePoint User Information List can be accessed via the browser by navigating to “/_catalogs/users/simple. aspx” from your site. You can see a screenshot of SharePoint Online user information list for on of my SharePoint Online site.

Can you track SharePoint user activity?

You can view the activities in the SharePoint report by choosing the Activity tab. Select Choose columns to add or remove columns from the report. You can also export the report data into an Excel .

How many SharePoint users are there?

The world's most popular collaboration and document management system, SharePoint is used by over 190 million people across the globe.


1 Answers

It depends on exactly what list of users you want.

All users that exist in a SharePoint web (but don't necessarily have permission):

SPWeb.AllUsers

Users that exist in a SharePoint web but have been granted some permission:

SPWeb.Users

Users that exist in a SharePoint site collection (but don't necessarily have permission):

SPWeb.SiteUsers

Note: I am assuming you are using WSS 3.0 / MOSS 2007 but this should work for WSS 2.0.

Also look at:

SPWeb.AllUsers vs. SPWeb.Users

SPWeb.AllUsers vs. SPWeb.Users vs. SPWeb.Groups

like image 126
Alex Angas Avatar answered Oct 14 '22 15:10

Alex Angas