Forum Discussion
dataSights_MDI
Nov 15, 2022Copper Contributor
Getting -2147024891, System.UnauthorizedAccessException - Sharepoint Online Rest API
We are fetching Sharepoint list through REST API for a client (tenant domain is medicaldesigninnovations), for that
- We have registered an app here https://medicaldesigninnovations.sharepoint.com/_layouts/15/appregnew.aspx
- Getting access/bearer token here https://accounts.accesscontrol.windows.net/48d0888c-0094-4141-ba64-11904884303b/OAuth/2
- Passing the bearer token to fetch a list called 'Project List' here https://medicaldesigninnovations.sharepoint.com/sites/projects/_api/web/lists/getbytitle('Project List')/items but getting the below error, response status is 403 Forbidden
{
"error": {
"code": "-2147024891, System.UnauthorizedAccessException",
"message": {
"lang": "en-US",
"value": "Attempted to perform an unauthorized operation."
}
}
}
1 Reply
Sort By
- rajkumar50Copper ContributorI am also doing same steps and facing the same error.
{
"error": {
"code": "-2147024891, System.UnauthorizedAccessException",
"message": {
"lang": "en-US",
"value": "Attempted to perform an unauthorized operation."
}
}
}
Please Help!