Forum Discussion
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
- praveenbattulaCopper 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,
- Matti PaukkonenIron Contributor
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
- Vishwanatha NayakBrass Contributor
Thank you Matti, very good suggestion