Skip to main content
added 25 characters in body
Source Link
Robert Lindgren
  • 24.5k
  • 12
  • 55
  • 79

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

Lets say the $site =new-object Microsoft.SharePoint.SPSite (http://spt/spaces/thisisit)

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

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

So how can iI delete every permission on a site? Not on the lists, not on the doclibsdocument libraries, botbut on the site itself?

know how to delete permissions from lists and doclibs. 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.

Lets say the $site =new-object Microsoft.SharePoint.SPSite (http://spt/spaces/thisisit)

$site don'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 doclibs, bot on the site itself?

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?

Source Link

Delete permissions from site with powershell

know how to delete permissions from lists and doclibs. 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.

Lets say the $site =new-object Microsoft.SharePoint.SPSite (http://spt/spaces/thisisit)

$site don'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 doclibs, bot on the site itself?