SharePoint 2010 Display all Sites i have access – fast and easy way

Search driven applications are applications which use the search service in order to provide data or do other stuff. They can be configured by using the availables search webparts or they can be developed by using visual studio and c# as well as XSL. So it depends what you prefer. There are many posts and instructions how to do it.

Today i would like to share an easy way to create a webpart which displays all sites to which i / the current user have access to. I use the search core result webpart and configure some things and got a nice result afterwards without programming anything.

You should have a search service configured as well as the standard features and the webpart for search activated.

At first, a small screen about what the expected result should be:

In order to achieve this we do the following steps.

Step 1: Add the Search Core Results Webpart to a site

Step 2: Open the Edit panel for the webpart

Step 3: Edit the Results Query Options

The  most important part is the fixed keyword query. If you insert contentclass:STS_Site the results are sites, if you use STS_Web it displays the webs which are in the index.

Step 4: Edit the Display Properties

uncheck the use location visualization.

Step 5: Save and refresh the site

After these steps you should have the result from above.

Resources:

If you wish to sort the entries by title, you should have a look at this post.

Instruction I

Instruction II

..:: I LIKE SHAREPOINT ::..

The article or information provided here represents completely my own personal view & thought. It is recommended to test the content or scripts of the site in the lab, before making use in the production environment & use it completely at your own risk. The articles, scripts, suggestions or tricks published on the site are provided AS-IS with no warranties or guarantees and confers no rights.

About Karsten Schneider 312 Articles
Consultant for Microsoft 365 Applications with a strong focus in Teams, SharePoint Online, OneDrive for Business as well as PowerPlatform with PowerApps, Flow and PowerBI. I provide Workshops for Governance & Security in Office 365 and Development of Solutions in the area of Collaboration and Teamwork based on Microsoft 365 and Azure Cloud Solutions. In his free time he tries to collect tipps and worthy experience in this blog.