Disable-WssMsoSharePointPermissionInheritance
Disables permission inheritance for a sp_online_2 securable object.
Disable-WssMsoSharePointPermissionInheritance
[-Library] <SharePointLibrary>
[<CommonParameters>]
Disable-WssMsoSharePointPermissionInheritance
[-Site] <SharePointSite>
[<CommonParameters>]
The Disable-WssMsoSharePointPermissionInheritance cmdlet disables permission inheritance for a sp_online_1 securable object. Securable objects include sites, lists, libraries, folders, documents, or items.
PS C:\> $Library = Get-WssMsoSharePointLibrary | Select-Object -First 1
PS C:\> Disable-WssMsoSharePointPermissionInheritance -SharePointLibrary $Library
The first command uses the Get-WssMsoSharePointLibrary cmdlet to get a library, and stores the result in the $Library variable.
The second command disables permission inheritance for the library named $Library.
PS C:\>
Specifies a sp_2013_2 library. The cmdlet disables permission inheritance for a library that you specify.
Type: | SharePointLibrary |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies a sp_2013_2 site. The cmdlet disables permission inheritance for a site that you specify.
Type: | SharePointSite |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Microsoft.WindowsServerSolutions.O365Integration.SharePointLibrary,Microsoft.WindowsServerSolutions.O365Integration.SharePointSite
Library
Type: Microsoft.WindowsServerSolutions.O365Integration.SharePointLibrary
Description: SharePoint library
Site
Type: Microsoft.WindowsServerSolutions.O365Integration.SharePointSite
Description: SharePoint site