Forum Discussion

gruering's avatar
gruering
Copper Contributor
Mar 08, 2024

Accessing a list on current users personal site (MySite) from a WebPart on another site (403 error)

Is it possible to acess a list from the current users personal site (MySite) within a WebPart on another site? (e.g. display data stored in a list on the users mysite)

The common methods that work for cross site calls do not work (403 error). Most likely because of the different base url (-my).

 

Did anyone succeed in accessing the MySite from another site?

  • R_o_n_'s avatar
    R_o_n_
    Copper Contributor

    gruering 

    You can access a Personal List through a standard webpart with the "Highlighted Content" webpart. List-items and list-functionality will not have the same interface as a regular list within the site.


    This query will also find items in the list like dispform.aspx. You can exclude or include certain elements through the KQL-Query.

    Users who access the SharePoint page need access to your personal list to be able to see the items.

    • gruering's avatar
      gruering
      Copper Contributor
      Thank you for your answer. But the question is related to a custom developed webpart and programmatically accessing lists in the personal site.

Resources