SPWeb.ResetRoleInheritance method

Resets the local role assignments so the website, and all it's descendant objects, re-inherit role assignments from the parent website.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public override void ResetRoleInheritance()




The current website is the root website.

All descendant objects of the website on which this method is run will also now inherit from this website's parent, not just the immediate children.

We recommend that you carefully test code that uses this method to see the effect it has on descendant objects.

This method does nothing if the HasUniqueRoleAssignments property is false.

For more information about permission inheritance, see Fine-grained permission reference for SharePoint Server 2013.