Back to All

-2147024891, System.UnauthorizedAccessException - SHAREPOINT ONLINE API

hello expert,

I am trying to update the sensitivity label using the SP API and using Postman by following Article https://www.contentandcode.com/blog/apply-office-365-labels/

But after completing the steps I am getting the following error:

{
"error": {
"code": "-2147024891, System.UnauthorizedAccessException",
"message": {
"lang": "en-US",
"value": "Access denied. You do not have permission to perform this action or access this resource."
}
}
}