Get-WssMsoSharePointPermission
Gets permission settings for a SharePoint Online securable object.
Syntax
Get-WssMsoSharePointPermission
[-Library] <SharePointLibrary>
[[-User] <SharePointUser>]
[<CommonParameters>]
Get-WssMsoSharePointPermission
[-Site] <SharePointSite>
[[-User] <SharePointUser>]
[<CommonParameters>]
Description
The Get-WssMsoSharePointPermission cmdlet gets permission settings for a SharePoint Online securable object. A office_365_1 site stores the SharePoint Online library.
Examples
Example 1: Get SharePoint permissions
PS C:\> $Library= Get-WssMmoSharePointLibrary | Select-Object -First 1
PS C:\> $Principal= Get-WssMsoSharePointPrincipal | Select-Object -First 1
PS C:\> Get-WssMSOSharePointObjectPermission -SecurableObject $Library -Principal $Principal
The first command uses the Get-WssMsoSharePointLibrary cmdlet to get a library, and stores the result in the $Library variable.
The second command uses the Get-WssMsoSharePointPrincipal cmdlet to get a SharePoint principal, and stores the result in the $Principal variable.
The last command gets the SharePoint permissions for the library named $Library and the principal named $Principal.
1:
PS C:\>
Parameters
-Library
Specifies a SharePoint library. The cmdlet gets permission settings 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 SharePoint site. The cmdlet gets permission settings 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 SharePoint user. The cmdlet gets permission settings 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
Outputs
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for