-2147024891, System.UnauthorizedAccessException Sharepoint Online Rest API

Copper Contributor

I am getting below error in SharePoint rest API, even though I am passing the latest Bearer Token

 

{
    "error": {
        "code": "-2147024891, System.UnauthorizedAccessException",
        "message": {
            "lang": "en-US",
            "value": "Attempted to perform an unauthorized operation."
        }
    }
}

 

 

1 Reply

@singhPrince Can you show us the REST API code you are using and how you are getting token & passing it to API call?


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.