Receiving a 401 Unauthorized - General exception while processing error when performing a GET request to a SharePoint site

Richard Hardin 5 Reputation points
2025-05-28T22:41:39.68+00:00

Hello,

I am attempting to make a GET request to the MS Graph API to get lists from a SharePoint site. The endpoint that I am using is. https://graph.microsoft.com/v1.0/sites/{site-id}/lists

When running the request, I receive a 401 unauthorized response with the following error:

Response body:

{

"error": {

"code": "generalException",

"message": "General exception while processing",

"innerError": {

"date": "2025-05-28T22:35:43",

"request-id": "bdd68acc-1bd0-49e0-9b92-fad634330de8",

"client-request-id": "bdd68acc-1bd0-49e0-9b92-fad634330de8"

}

}

}

In Microsoft Entra, SharePoint has the "Sites.FullControl.All" permissions. Do any other permissions need to be added in order to prevent this error? "General Exception while processing" is quite vague and does not provide any clarity to the root cause. Any help would be greatly appreciated.

Thanks!

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,684 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.