Solved

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

Posted on 2014-03-20
3
283 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

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 …
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now