Break site permission inheritance in code Sometimes your want to allow your customer to create a site or a subsite with a simple click. And you want that same click to break the permission inheritance of its parent site. Well, it has taken me some research but I have found a solution to do exactly that in code. Just put this code on a Sharepoint page. Or include the Sharepoint client object model into your custom page. Enjoy the power of scripting !