Enable-WssMsoSharePointPermissionInheritance

Enables permission inheritance for a SharePoint Online securable object.

Syntax

Enable-WssMsoSharePointPermissionInheritance
      [-Library] <SharePointLibrary>
      [<CommonParameters>]
Enable-WssMsoSharePointPermissionInheritance
      [-Site] <SharePointSite>
      [<CommonParameters>]

Description

The Enable-WssMsoSharePointPermissionInheritance cmdlet enables permission inheritance for a SharePoint Online securable object. Securable objects include sites, lists, libraries, folders, documents, or items.

Examples

Example 1: Enable SharePoint permission inheritance

PS C:\> $Library = Get-WssMsoSharePointLibrary | Select-Object -First 1
PS C:\> Enable-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 enables permission inheritance for the library named $Library.

1:

PS C:\>

Parameters

-Library

Specifies a SharePoint library. The cmdlet enables 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

-Site

Specifies a SharePoint site. The cmdlet enables 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

Inputs

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