1

I've been trying to switch between SharePoint REST API and Graph API and I can't find an equivalent of breakroleinheritance()

_api/web/GetFileByServerRelativeUrl('/sites/sitename/Shared%20Documents/foldername')/ListItemAllFields/breakroleinheritance(true)

doesn't seem to have a matching functionality in graph.

I tried listing all permissions via /drives/${driveId}/items/${someFolderId}/permissions and deleting them one by one, but it silently fails on one permission that's the main owners group and I can't delete it.

Tried looking for role management in Graph API but there's role management only for devices.

How do I break role inheritance through Graph API?

0

I think MS Graph API has not exposed such an endpoint that could break role inheritance. You may have to continue using the old rest API.

BR

1
  • With the app authorization that looks like a phishing attack, I'd rather have a regular oauth to Graph API and less features :) – naugtur Sep 25 '20 at 8:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.