Share via

While get user’s list of followed sites (using application permissions). By calling GET /me/followedSites endpoint gives "access denied”

Anonymous
2024-05-07T07:03:46.88+00:00

Hi team,

I was trying to get user’s list of followed sites (using application permissions). But calling GET /me/followedSites endpoint gives "access denied” and not able to know the root cause for this issue. Is something know issue or is it permission related issue.

please find error logs attached for the same.

thanks
Tanvi Mittal

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | SharePoint Server | Development
Microsoft Security | Microsoft Graph
0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2024-05-07T10:24:40.77+00:00

    Hi Carl,

    is this correct? We have done this and it is still giving same 404 error. Let me know if i am missing something here.

    User's image

    Was this answer helpful?


  2. Anonymous
    2024-05-07T09:18:49.58+00:00

    Hi Carl

    We have enabled all these settings. And when we are trying to access sharepoint it gives the error as
    Exception Type: Microsoft.Graph.ServiceException

    Error: Code: accessDenied

    Message: Access denied

    Inner error:

    
    
    StatusCode: Forbidden
    
    RawResponseBody: {"error":{"code":"accessDenied","message":"Access denied","innerError":{"date":"2024-05-06T05:03:33","request-id":"85c976e5-6309-462e-a2d5-89ab8c90d24b","client-request-id":"85c976e5-6309-462e-a2d5-89ab8c90d24b"}}}
    
    

    Was this answer helpful?


  3. CarlZhao-MSFT 46,456 Reputation points
    2024-05-07T08:05:15.1666667+00:00

    Hi @Tanvi Mittal

    According to the API documentation, it only supports delegated permissions.

    User's image

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    Was this answer helpful?

    0 comments No comments

Your answer

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