How to get a custom listing of my SiteCollection/Group/Teams Memberships in SharePoint Online like the _layouts/15/sharepoint.aspx Page? RRS feed

  • Question

  • Hi everyone!

    I'm currently looking for a way to get a listing of my own memberships regarding SiteCollections like Teamsites / Groups or my Microsoft Teams Memberships. It is meant as a landing page for the users to find their workspace asap on the go.

    The standard _layouts/15/sharepoint.aspx page is already half the way, but we need to modify it. Is there any way to customize the _layouts/15/sharepoint.aspx page in a SharePoint Online Environment? And if not, is there a way to mimic its features?

    With kind regards and thanks in advance!

    • Edited by Tim Petersen Tuesday, October 29, 2019 3:48 PM title edit
    Tuesday, October 29, 2019 3:48 PM


  • This is system application layouts page available only in Sharepoint Online - i.e. it is not editable like publishing pages (you can add/remove/edit web parts there). In order to get sites where current user has access you may use Search API - it automatically security trims results so users will see only those sites which they may access (i.e. have at least Read permissions).

    If you need to display only modern Team and Communication sites here is search query which will return all of them (for current user):

    ContentTypeId:0x0101009D1CB255DA76424F860D91F20E6C4118* AND (WebTemplate:GROUP OR WebTemplate:STS)
    (specified content type id is id of front page's content type used on modern sites)

    Blog -
    Dynamic CAML queries via C# -

    • Edited by sadomovalexMVP Wednesday, October 30, 2019 4:06 PM .
    • Marked as answer by Tim Petersen Friday, November 1, 2019 10:53 AM
    Wednesday, October 30, 2019 4:06 PM