Remove-WssMsoSharePointPermission

Remove-WssMsoSharePointPermission

Removes a permission relationship between a user or group and a library or site.

Syntax

Parameter Set: ByLibrary
Remove-WssMsoSharePointPermission [-Library] <SharePointLibrary> [[-User] <SharePointUser> ] [ <CommonParameters>]

Parameter Set: BySite
Remove-WssMsoSharePointPermission [-Site] <SharePointSite> [[-User] <SharePointUser> ] [ <CommonParameters>]

Detailed Description

The Remove-WssMsoSharePointPermission cmdlet removes a permission relationship between a user or group and a library or site. A site stores the library.

Parameters

-Library<SharePointLibrary>

Specifies a library. The cmdlet removes a permission relationship for the library that you specify.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-Site<SharePointSite>

Specifies a site. The cmdlet removes a permission relationship for the site that you specify.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-User<SharePointUser>

Specifies a user. The cmdlet removes a permission relationship for the user that you specify.

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • 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

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Remove a SharePoint permission relationship

This command removes permissions for the user.

PS C:\> Remove-WssMsoSharePointPermission -User "Admin01"
PS C:\> 

Get-WssMsoSharePointPermission

Set-WssMsoSharePointPermission