Sets CopyMove permissions for a SharePoint permission level in a SharePoint site collection. The CopyMove permissions are applied to the specified SharePoint permission level, e.g. Contribute or Read. However, the permissions are only respected when CopyMove has also been configured to restrict access to authorized users. See the Global Settings section or the Site Collection Settings section in the Administration chapter. This effect of this PowerShell Cmdlet is identical to manually configuring CopyMove permissions as described in the Permissions Management section.
Set-CopyMovePermissionLevel [-Identity] <SPSitePipeBind> -Name <string> [-AllowCopy <bool>] [-AllowExport <bool>] [-AllowImport <bool>] [-AllowMove <bool>] [<CommonParameters>]
|
Parameter
|
Required
|
Type
|
Description
|
Identity
|
Yes
|
SPSitePipeBind
|
SharePoint SPSite object or a string object with site collection GUID or the absolute URL address of the SharePoint site collection.
|
Name
|
Yes
|
System.String
|
The name of the permission level to update.
|
AllowCopy
|
No
|
Boolean
|
Sets a Boolean value indicating whether to allow the Copy action.
|
AllowMove
|
No
|
Boolean
|
Sets a Boolean value indicating whether to allow the Move action.
|
AllowExport
|
No
|
Boolean
|
Sets a Boolean value indicating whether to allow the Export action.
|
AllowImport
|
No
|
Boolean
|
Sets a Boolean value indicating whether to allow the Import action.
|
Examples
Sets CopyMove permissions on the permission level Contribute in the site collection https://teams.mydomain.net/sites/site.
Get-SPSite "https://teams.mydomain.net/sites/site" | Set-CopyMovePermissionLevel -Name "Contribute" -AllowCopy $true -AllowMove $true -AllowExport $false -AllowImport $false
|
|