Sign up ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am looking for the possibility to display all the team sites a user is member of in the my site for the user.Also the possibility for the admin to get the same information about different user.

Is it possible in SharePoint 2010 entreprise edition? if yes could you please point me in the right direction?

share|improve this question

3 Answers 3

If you have EnterpriseSearch set up, it already has that information for you, so you can query that with very good performance.

share|improve this answer

Its already been asked i think? here is the code snippit and url :)

using(SPSite site = new SPSite("http://example/site/")) 
    using (SPWeb web = site.OpenWeb()) 
        SPWebCollection webCollection = web.GetSubwebsForCurrentUser(); 

share|improve this answer

You can use powershell to view list of all sites within a site collection user has access to.


`$site | Get-SPWeb -Limit All | Get-SPUserEffectivePermissions $user | Out-GridView -Title "Web Permissions for $user"


The "Get-SPUserEffectivePermissions" commandlet is a custom commandlet that was part of a bigger package hosted by It is no longer avaliable from the website,

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.