Forum Discussion

Vishwanatha Nayak's avatar
Vishwanatha Nayak
Brass Contributor
Jan 15, 2019
Solved

Programatically display user's relevant/recently visited SharePoint sites

Hi All,

 

I am looking for a solution to list recently visited (relevant) SharePoint sites (modern team sites) for a user programatically. Similar to how SharePoint home page display cards for sites.

 

Any suggestion please.

 

Regards,

Vishwa

  • If you are using SharePoint Online, check out SharePoint Starter Kit. There is already a web part for that.

    https://github.com/SharePoint/sp-starter-kit

    https://github.com/SharePoint/sp-starter-kit/blob/master/documentation/components/wp-recently-visited-sites.md

     

     

3 Replies

  • praveenbattula's avatar
    praveenbattula
    Copper Contributor

    Vishwanatha Nayak I know you have an answer by now. Incase if anyone else is looking for similar requirements as we do, the solution is using insight api in Microsoft graph. 

     

    this api can give more options for showing user history (recent documents, sites or any objects which they are working on). 

     

    me/insights/used

     

    thanks

    -Praveen,

  • If you are using SharePoint Online, check out SharePoint Starter Kit. There is already a web part for that.

    https://github.com/SharePoint/sp-starter-kit

    https://github.com/SharePoint/sp-starter-kit/blob/master/documentation/components/wp-recently-visited-sites.md

     

     

Resources