Solved

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

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 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

16 Experts available now in Live!

Get 1:1 Help Now