SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know how to delete permissions from lists and document libraries. Simply I can use the BreakRoleInheritance, and I can remove every user. But I couldn't find a way to do this with a site.

Like this: $site =new-object Microsoft.SharePoint.SPSite (http://spt/spaces/thisisit)

$site doesn't have inheritance method (or I just don't know how to use it).

So how can I delete every permission on a site? Not on the lists, not on the document libraries, but on the site itself?

share|improve this question
I really recommend you to read up on the differences between site collections, and sites in SharePoint (hence SPSite and SPWeb objects) as well as the basic security features of SP.… for SPWeb vs SPSite, for permissions and security – Robert Lindgren Aug 27 '13 at 13:17
up vote 0 down vote accepted

You need to get the web object of the site to break the inheritance:

$web = Get-SPWeb -Identity $Url


If you want to delete permission levels in root web, you can do it this way:

$web = Get-SPWeb -Identity http://sp2010:90
share|improve this answer
This seems to be the way. But i got an error: "Cannot change permissions of root web: I am the owner with full control. Why can't i modify it? – Lokids Aug 27 '13 at 12:50
The error is obvious, you break inheritance for child webs not root web. Rootweb doesn't inherit from anything. – Nadeem Yousuf Aug 27 '13 at 12:57
Hmmm. I thought the stp is the root web. But the "thisisit" is also root? Because then i have an another problem. How can i delete every user on root web? – Lokids Aug 27 '13 at 13:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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