While get user’s list of followed sites (using application permissions). By calling /users/{user-id}/followedSites endpoint gives "General exception while processing”

Meera E 0 Reputation points
2023-03-03T04:52:50.0066667+00:00

sharepointIssue.txt

Hi team,

I was trying to get user’s list of followed sites (using application permissions). But calling /users/{user-id}/followed Sites endpoint gives "General exception while processing” error
and not able to know the root cause for this issue. Is something know issue or is it permission related issue.

please find logs attached for the same.

thanks,
Meera E

Azure Data Share
Azure Data Share
An Azure service that is used to share data from multiple sources with other organizations.
55 questions
SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,372 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,813 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.
3,035 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. RaytheonXie_MSFT 36,171 Reputation points Microsoft Vendor
    2023-03-03T06:19:13.1833333+00:00

    Hi @Meera E

    Per my test, I can reproduce your error by calling /users/{user-id}/followedSites endpoint. After doing some research, I found that there is no such endpoint currently. I am unable to found any offical document about the api, and currently only support following api

    POST /users/{user-id}/followedSites/add
    POST /users/{user-id}/followedSites/remove
    GET /me/followedSites
    

    You can refer to folloing link

    https://github.com/microsoftgraph/microsoft-graph-docs/blob/main/api-reference/beta/resources/site.md


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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Meera E 0 Reputation points
    2023-03-03T07:07:01.88+00:00

    Hi @RaytheonXie_MSFT

    using the endpoint
    /users/{user-id}/followedSites was working fine before using application permission. Recently we are facing issue with this endpoint.
    May I know is anything changes recently or any alternative endpoint to get the followed sites by using user ID.

    0 comments No comments

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.