Get-WssMsoSharePointPermission

Get-WssMsoSharePointPermission

Gets permission settings for a SharePoint Online securable object.

構文

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

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

詳細説明

The Get-WssMsoSharePointPermission cmdlet gets permission settings for a SharePoint Online securable object. A site stores the SharePoint Online library.

パラメーター

-Library<SharePointLibrary>

Specifies a SharePoint library. The cmdlet gets permission settings for the library that you specify.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

True (ByValue, ByPropertyName)

ワイルドカード文字を許可する

false

-Site<SharePointSite>

Specifies a SharePoint site. The cmdlet gets permission settings for the site that you specify.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

True (ByValue, ByPropertyName)

ワイルドカード文字を許可する

false

-User<SharePointUser>

Specifies a SharePoint user. The cmdlet gets permission settings for the user that you specify.

エイリアス

なし

必須?

false

位置は?

2

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • 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

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • System.String

Example 1: Get SharePoint permissions

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.

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
PS C:\> 

関連トピック

Remove-WssMsoSharePointPermission

Set-WssMsoSharePointPermission