Get-WssMsoSharePointPermission

Windows Server 2012 R2 and Windows 8.1

Get-WssMsoSharePointPermission

Gets permission settings for a SharePoint Online securable object.

Sintaxis

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

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




Descripción detallada

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

Parámetros

-Library<SharePointLibrary>

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


Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue, ByPropertyName)

¿Aceptar caracteres comodín?

false

-Site<SharePointSite>

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


Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue, ByPropertyName)

¿Aceptar caracteres comodín?

false

-User<SharePointUser>

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


Alias

ninguno

¿Requerido?

false

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al 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



Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • System.String

Ejemplos

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

 

Temas relacionados

Adiciones de comunidad

AGREGAR
Mostrar: