Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-03-20
3
Medium Priority
?
295 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

877 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