List FollowedSites for delegated user via MS Graph API

Jogchem Andre Oord 1 Reputation point
2021-04-14T15:07:02.8+00:00

When I try to run await _graphClient.Me.FollowedSites.Request().GetAsync(); for a guest user I get the following error:

ServiceException: Code: accessDenied
Message: This operation is not supported under this site.

How would I get a list of all sharepoint sites that are available to the current user?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,997 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.