followedSites and followedSites/add Graph API issues and strange behavior

André Lage 1 Reputation point
2022-03-28T14:40:07.663+00:00

I would like to describe the following scenario when using Graph api follow sites and how is reflecting in https://{domain}.sharepoint.com/_layouts/15/sharepoint.aspx?v=following to display the follow sites.
Graphs API used:
https://learn.microsoft.com/en-us/graph/api/site-follow?view=graph-rest-1.0&tabs=http
https://learn.microsoft.com/en-us/graph/api/sites-list-followed?view=graph-rest-1.0&tabs=http

Scenario description:
PS Script when executed get users from SharePoint site and adds followedSites/add POST to be reflected in SharePoint site https://{domain}.sharepoint.com/_layouts/15/sharepoint.aspx?v=following

1 Issue - Add follow Site to user using POST Batch
Each user can be associated to more than 10 sites associated.
Usage of followedSites/add POST with Request of 20 Sites id .
When executed only the first 5 are included even receive message that 20 sites are follow.

This can be validated and verify by following the steps "top Left icon > OneDrive > Quick Access"

when executed by batch of 5 all follow were included and accessible on "OneDrive > "Quick Access"

2 Issue - Graph Quest {user-id}/followedSites
When execute this graph query the added follow sites by graph are not reflect only when user access to site physically and click "follow site" in SharePoint site, this sites are reflected but not by graph followedSites/add POST.

Please ignore 3 point - there was a time issue until re-index again from search and became available.
Ignore 3 Issue - SharePoint https://{domain}.sharepoint.com/_layouts/15/sharepoint.aspx?v=following doesn't display added follow sites.
When access to reference SharePoint site only reflect sites that were manually added or site created, only when user uncheck one of the site then will reflect the sites added by followedSites/add POST.

Please ignore 3 point - there was a time issue until re-index again from search and became available.

Is this normal behavior or my steps are incorrect?
@Maisa Rissi

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,667 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,698 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,675 questions
{count} votes