SOLVED

Following O365 Group Sites (excluded in API)

%3CLINGO-SUB%20id%3D%22lingo-sub-28494%22%20slang%3D%22en-US%22%3EFollowing%20O365%20Group%20Sites%20(excluded%20in%20API)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-28494%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20use%20several%20custom%20web%20parts%20throughout%20our%20Intranet%20to%20provide%20quick%20access%20to%20%22Site's%20I'm%20Following%22%20in%20our%20SharePoint%20Online%20environment.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20REST%20API%20is%20located%20at%3A%20%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fmytenant.sharepoint.com%2F_api%2Fsocial.following%2Fmy%2Ffollowed(types%3D14%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmytenant.sharepoint.com%2F_api%2Fsocial.following%2Fmy%2Ffollowed(types%3D14%3C%2FA%3E)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20when%20you%20follow%20an%20O365%20Group%20Site%2C%20it%20does%20not%20appear%20in%20that%20list.%20%26nbsp%3BIt%20does%20appear%20if%20you%20to%20to%20the%20modern%20SharePoint%20home%20thing%20for%20followed%20site%20(%3CA%20href%3D%22https%3A%2F%2Fmytenant.sharepoint.com%2F_layouts%2F15%2Fsharepoint.aspx%3Fv%3Dfollowing).%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmytenant.sharepoint.com%2F_layouts%2F15%2Fsharepoint.aspx%3Fv%3Dfollowing).%26nbsp%3B%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20new%20API%20endpoint%20to%20get%20ALL%20sites%20i'm%20following%20regardless%20of%20classic%20vs%20o365%20group%20site%3F%20%26nbsp%3BPlans%20to%20fix%20this%20in%20the%20current%20API%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-28494%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Groups%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-71767%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20Following%20O365%20Group%20Sites%20(excluded%20in%20API)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-71767%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Brent%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20reading%20your%20post%20-%20I%20am%20researching%20the%20best%20way%20to%20retrieve%20the%26nbsp%3BOffice%20365%20Groups%20and%20Sites%20that%20the%20user%20is%20following.%20It%20would%20be%20great%20if%20it%20could%20also%20return%20when%20it%20was%20last%20modified%20(maybe%20asking%20for%20too%20much).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20mentioned%20that%20there's%20a%20Delve%20endpoint%20to%20do%20that.%20What%20is%20the%20endpoit%3F%20Are%20you%20using%20Grah%20Query%20or%20Search%20REST%20APIs%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EMayra%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-28514%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20Following%20O365%20Group%20Sites%20(excluded%20in%20API)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-28514%22%20slang%3D%22en-US%22%3EThanks%20Paul%2C%20I%20found%20the%20new%20Delve%20endpoint%20to%20replace%20the%20old%20one%2C%20and%20was%20able%20to%20easily%20swap%20it%20out%20for%20my%20existing%20code.%20It%20is%20actually%20much%20more%20robust%20and%20useful%20than%20the%20old%20school%20one%20(as%20it%20should%20be)!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-28500%22%20slang%3D%22en-US%22%3ERE%3A%20Following%20O365%20Group%20Sites%20(excluded%20in%20API)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-28500%22%20slang%3D%22en-US%22%3EHi%20Brent%2C%20It%20is%20because%20Delve%20is%20taking%20over.%20Maybe%20you%20can%20still%20see%20them%20in%20the%20left%20bar.%20But%20it%20is%20like%20the%20promoted%20sites%20that%20went%20down%20to%20the%20left.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-28499%22%20slang%3D%22en-US%22%3ERe%3A%20Following%20O365%20Group%20Sites%20(excluded%20in%20API)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-28499%22%20slang%3D%22en-US%22%3E%3CP%3ESo%20scratch%20that%2C%20found%20my%20own%20answer%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUpdated%20API's%20to%20get%20followed%20and%20recent%20sites%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EFollowed%3C%2FSTRONG%3E%3A%20%3CA%20href%3D%22https%3A%2F%2Fmytenant.sharepoint.com%2F_vti_bin%2Fhomeapi.ashx%2Fsites%2Ffollowed%3FmostRecentFirst%3Dtrue%26amp%3Bstart%3D0%26amp%3Bcount%3D100%26amp%3BfillSiteData%3Dtrue%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmytenant.sharepoint.com%2F_vti_bin%2Fhomeapi.ashx%2Fsites%2Ffollowed%3FmostRecentFirst%3Dtrue%26amp%3Bstart%3D0%26amp%3Bcount%3D100%26amp%3BfillSiteData%3Dtrue%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ERecent%3C%2FSTRONG%3E%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fmytenant.sharepoint.com%2F_vti_bin%2Fhomeapi.ashx%2Fsites%2Ffollowed%3FmostRecentFirst%3Dtrue%26amp%3Bstart%3D0%26amp%3Bcount%3D100%26amp%3BfillSiteData%3Dtrue%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmytenant.sharepoint.com%2F_vti_bin%2Fhomeapi.ashx%2Fsites%2Ffollowed%3FmostRecentFirst%3Dtrue%26amp%3Bstart%3D0%26amp%3Bcount%3D100%26amp%3BfillSiteData%3Dtrue%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUpdating%20my%20scripts%20now%26nbsp%3B%3Cimg%20id%3D%22manlol%22%20class%3D%22emoticon%20emoticon-manlol%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fi%2Fsmilies%2F16x16_man-lol.png%22%20alt%3D%22Man%20LOL%22%20title%3D%22Man%20LOL%22%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Valued 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 Brent Ellis (Valued 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