Remove-WssMsoSharePointPermission
Removes a permission relationship between a sp_2013_2 user or group and a library or site.
Syntax
Remove-WssMsoSharePointPermission
[-Library] <SharePointLibrary>
[[-User] <SharePointUser>]
[<CommonParameters>]
Remove-WssMsoSharePointPermission
[-Site] <SharePointSite>
[[-User] <SharePointUser>]
[<CommonParameters>]
Description
The Remove-WssMsoSharePointPermission cmdlet removes a permission relationship between a sp_2013_1 user or group and a sp_2013_2 library or site. A office_365_1 site stores the sp_online_1 library.
Examples
Example 1: Remove a SharePoint permission relationship
PS C:\>Remove-WssMsoSharePointPermission -User "Admin01"
This command removes sp_2013_2 permissions for the user.
1:
PS C:\>
Parameters
-Library
Specifies a sp_2013_2 library. The cmdlet removes a permission relationship for the library that you specify.
Type: | SharePointLibrary |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Site
Specifies a sp_2013_2 site. The cmdlet removes a permission relationship for the site that you specify.
Type: | SharePointSite |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-User
Specifies a sp_2013_2 user. The cmdlet removes a permission relationship for the user that you specify.
Type: | SharePointUser |
Position: | 1 |
Default value: | None |
Required: | False |
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