Break Inheritance Permission of folder and assign new different permissions in SharePoint

AlfiShf 0 Reputation points
2025-03-18T08:17:04.7333333+00:00

Dear everyone,

I want to create a folder and make new specific permissions for some users in how they can access the folder. As I understand, every time we create a new folder in SharePoint, the folder will inherit default permissions from its parent folder. In my case, the new folder will be directly under Documents. So, I want to break the inheritance role of the new folder and assign new permissions for that folder.

At this moment I am using _api/web/GetFolderByServerRelativeUrl('/sites/SiteName/Shared Documents/NewFolder)/ListItemAllFields/breakroleinheritance(false). I tried to use breakroleinheritance(true) but it took so long. I was suspecting if probably there are many default permissions to break and copying many permissions [ breakroleinheritance(true) ] will also take time, so I decided to not copy the permissions. Then with this case, is it enough to use Delegated Permission Sites.Selected or do we also need to use Delegated Permission Sites.FullControl.All ? In my case, I need to use Delegated Permission not Application.

Thank you and I hope someone can help me to find the answer!

Microsoft 365 and Office | SharePoint | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ling Zhou_MSFT 23,665 Reputation points Microsoft External Staff
    2025-03-19T02:29:57.8333333+00:00

    Hi @AlfiShf,

    Thanks for reaching out to us. We are very pleased to assist you.

    Based on the information provided by you, it is found that you may be using the SharePoint REST service (in Azure App).

    If there is anything wrong, please correct me.

    If there is not anything wrong, it is suggested that you look at the delegated SharePoint permissions here without the Site.Selected option.

    User's image

    In this case, it would be more appropriate for us to select "Delegated Permission Sites.FullControl.All".

    If you have any questions, please do not hesitate to contact me.

    Moreover, if the issue can be fixed successfully, please click "Accept Answer" so that we can better archive the case and the other community members who are suffering the same issue can benefit from it.

    Your kind contribution is much appreciated.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.