What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested
[X] 💥 Internet Explorer
[X] 💥 Microsoft Edge
[X] 💥 Google Chrome
[X] 💥 FireFox
[X] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[ ] other (enter in the "Additional environment details" area below)
Additional environment details
browser version
SPFx version
Node.js version
etc
Issue description
We need to call the methods via API to grant permissions to a folder, but we are getting unauthorized errors in all of them. We have tried logging in with a user (we have ensured that the user is an admin of the site) and password, and via App, and we have the same problem with both. First, we tried to call to break the inheritance of the folder and we already get the unauthorized error: https://xxxxx.sharepoint.com/sites/Aplicaciones/_api/web/GetFolderByServerRelativeUrl(‘versiones/carpeta1’)/ListItemAllFields/breakroleinheritance(copyRoleAssignments=false, clearSubscopes=true) We have tried to do the same through a flow from PowerPlatform itself and we get the same permissions error, and if we try to share the link, we get the same error.
What type of issue is this?
Question
What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested
Additional environment details
Issue description
We need to call the methods via API to grant permissions to a folder, but we are getting unauthorized errors in all of them. We have tried logging in with a user (we have ensured that the user is an admin of the site) and password, and via App, and we have the same problem with both. First, we tried to call to break the inheritance of the folder and we already get the unauthorized error: https://xxxxx.sharepoint.com/sites/Aplicaciones/_api/web/GetFolderByServerRelativeUrl(‘versiones/carpeta1’)/ListItemAllFields/breakroleinheritance(copyRoleAssignments=false, clearSubscopes=true) We have tried to do the same through a flow from PowerPlatform itself and we get the same permissions error, and if we try to share the link, we get the same error.
Can someone help us? Thank you very much