Forum Discussion

Vivek Gupta's avatar
Vivek Gupta
Copper Contributor
Mar 12, 2018
Solved

How to show the Site Collection List using SharePoint Framework Client Side Web Part in Office 365?

Hi, How to show the Site Collection List which is accessible to the user using SharePoint Framework Client Side Web Part in Office 365? Please provide a example. Thanks in advance.
  • paulpascha's avatar
    Mar 12, 2018

    You can achieve this by making use the Search REST API:

    https://docs.microsoft.com/en-us/sharepoint/dev/general-development/sharepoint-search-rest-api-overview

     

    You can specify your search query to retrieve site collections:

    contentclass:"STS_Site"

     

    See also:

    https://sharepoint.stackexchange.com/questions/137739/i-want-to-get-list-of-all-site-collection-available-on-sharepoint-server-2013-us?rq=1

Resources