SOLVED

Following O365 Group Sites (excluded in API)

Silver Contributor

We use several custom web parts throughout our Intranet to provide quick access to "Site's I'm Following" in our SharePoint Online environment.

 

This REST API is located at:  https://mytenant.sharepoint.com/_api/social.following/my/followed(types=14)

 

However, when you follow an O365 Group Site, it does not appear in that list.  It does appear if you to to the modern SharePoint home thing for followed site (https://mytenant.sharepoint.com/_layouts/15/sharepoint.aspx?v=following). 

 

Is there a new API endpoint to get ALL sites i'm following regardless of classic vs o365 group site?  Plans to fix this in the current API?

4 Replies
best response confirmed by VI_Migration (Silver Contributor)
Solution

So scratch that, found my own answer:

 

Updated API's to get followed and recent sites:

 

Followed: https://mytenant.sharepoint.com/_vti_bin/homeapi.ashx/sites/followed?mostRecentFirst=true&start=0&co...

 

Recenthttps://mytenant.sharepoint.com/_vti_bin/homeapi.ashx/sites/followed?mostRecentFirst=true&start=0&co...

 

Updating my scripts now Man LOL

Hi Brent, It is because Delve is taking over. Maybe you can still see them in the left bar. But it is like the promoted sites that went down to the left.
Thanks Paul, I found the new Delve endpoint to replace the old one, and was able to easily swap it out for my existing code. It is actually much more robust and useful than the old school one (as it should be)!

Hi Brent,

 

I was reading your post - I am researching the best way to retrieve the Office 365 Groups and Sites that the user is following. It would be great if it could also return when it was last modified (maybe asking for too much).

 

You mentioned that there's a Delve endpoint to do that. What is the endpoit? Are you using Grah Query or Search REST APIs?

 

Thanks,

Mayra

1 best response

Accepted Solutions
best response confirmed by VI_Migration (Silver Contributor)
Solution