Trying to create a page in SharePoint Online that users can access to show them a list of all of the sites that they have permissions to access. Out of the box, Office 365 offers theSites page which shows the users a list of all sites that they are Following (<g class="gr_ gr_405 gr-alert gr_spell ContextualSpelling ins-del multiReplace" data-gr-id="405" id="405">https</g>://<my-tenant>.sharepoint.com/personal/<my-user-id>/Social/Sites.aspx). This is fine, but it requires the users to go follow the site before it will appear on this page. I really would just like a similar page that shows them all sites that they have access to.
Using the following two calls gets me the data for a specified Site Collection:
- https://<my-tenant>.sharepoint.com/teams/it/_api/web/webs/?$select=title,effectivebasepermissions&$filter=effectivebasepermissions/high%20gt%2032
- https://<my-tenant>.sharepoint.com/teams/it/_api/search/query?Querytext='*'&Properties='GraphQuery:ACTOR(ME\,OR(action\:1001\,action\:1003))'
But we have multiple Site Collections, and users have permissions to sites within one or more of these Site Collections.
How would I go about getting a complete list of all sites/subsites within all site collections?
Thanks in advance.