Solved

Where do I find a list of users for a SharePoint Site Collection

Posted on 2014-03-20
3
285 Views
Last Modified: 2014-03-20
Our SP dude is on vacation with his kids.  Mgt has requested a list of all users for a site collection.  How do we do that?  Keep in mind we did not manually add them. They came to our web site and registered through forms-based authentication.

 I see there is a SP Admin site.  I think I can get the credentials.  Where do I look?  Never been there.
0
Comment
Question by:rowek
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
SvenIA earned 500 total points
ID: 39942779
It can be done with PowerShell;

For SharePoint 2007 or 2010 in any PowerShell;

[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")

$site = New-Object Microsoft.SharePoint.SPSite("http://yourservername/sites/yoursitecollection ")

$groups = $site.RootWeb.sitegroups

foreach ($grp in $groups) {"Group: " + $grp.name; foreach ($user in $grp.users) {"  User: " + $user.name} }

$site.Dispose()

Open in new window


For SharePoint 2010 in the SharePoint Management Shell;


$site = Get-SPSite http://yourservername/sites/yoursitecollection 

$groups = $site.RootWeb.sitegroups

foreach ($grp in $groups) {"Group: " + $grp.name; foreach ($user in $grp.users) {"  User: " + $user.name} }

$site.Dispose()

Open in new window

0
 

Author Closing Comment

by:rowek
ID: 39942880
Fast, accurate.  Thank you very much.
0
 
LVL 7

Expert Comment

by:SvenIA
ID: 39942885
You're welcome!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SharePoint and Javascript 404 Error - Failed to Load Resource 6 84
Failed to upgrade SharePoint Products 8 73
Sharepoint KB 2 74
SharePoint Custom List 2010 Limitation? 1 27
Work Over Net is a new and very powerful collaboration product. With its new easy interface it is becoming very competitive to other similar products like webex and office interactive. WON 2010 have the standard business tools needed for multi-offic…
I have just recently built a new SharePoint 2007 farm on a complete Windows 2008 R2 server platform and part of my standard build procedure is to implement a warm up routine, usually in the form of a script that is scheduled every morning to launch …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question