Revoke-SPObjectSecurity
**Применимо к:**SharePoint Server 2016
**Последнее изменение раздела:**2015-03-09
Removes a security principal from a SPObjectSecurity object.
Синтаксис
Revoke-SPObjectSecurity [-Identity] <SPObjectSecurity> [-Principal] <SPClaim> [[-Rights] <String[]>] [-AssignmentCollection <SPAssignmentCollection>]
Revoke-SPObjectSecurity [-Identity] <SPObjectSecurity> -All <SwitchParameter> [-AssignmentCollection <SPAssignmentCollection>]
Detailed Description
Этот командлет содержит несколько наборов параметров. Можно использовать параметры только из одного набора параметров; использование параметров из разных наборов не допускается. Подробнее об использовании наборов параметров см. в статье о наборах параметров командлетов.
The Revoke-SPObjectSecurity cmdlet to remove a security principal, such as a user, from a SPObjectSecurity object. An SPObjectSecurity object is a common object that is used to represent the security access control list (ACL) of SharePoint administrative objects, in particular service applications.
Сведения о разрешениях и актуальную информацию о Windows PowerShell для продуктов SharePoint см. в справочнике по Windows PowerShell для SharePoint Server 2016.
Параметры
Parameter | Required | Type | Description | ||
---|---|---|---|---|---|
Identity |
Required |
Microsoft.SharePoint.Administration.AccessControl.SPObjectSecurity |
Specifies the SPObjectSecurity object from which the security principal is removed. You can use the Get- SPServiceApplicationSecurity cmdlet to get a SPObjectSecurity object . |
||
Principal |
Required |
Microsoft.SharePoint.Administration.Claims.SPClaim |
Specifies the principal for whom the rights are removed. The type must a valid name a principal; for example, Full Control. |
||
Rights |
Optional |
System.String[] |
Specifies the rights of the principal to revoke. The type must a valid array of strings that represents the rights of the principal to revoke. |
||
All |
Required |
System.Management.Automation.SwitchParameter |
Specifies that all security principals are removed from the specified SPObjectSecurity object. |
||
AssignmentCollection |
Optional |
Microsoft.SharePoint.PowerShell.SPAssignmentCollection |
Позволяет корректно удалять объекты. При использовании объектов таких типов, как SPWeb или SPSite , возможен захват больших объемов памяти, и работа с такими объектами в скриптах Windows PowerShell требует точного управления памятью. С помощью объекта SPAssignment вы можете назначить объекты переменной и освободить память, удалив ненужные объекты. Объекты SPWeb , SPSite или SPSiteAdministration после использования удаляются автоматически, если коллекция назначения или параметр Global не применяются.
|
Input Types
Return Types
Пример
------------------EXAMPLE------------------
$security = Get-SPServiceApplicationSecurity $serviceApp -AdminRevoke-SPObjectSecurity $security "domain\user"Set-SPServiceApplicationSecurity $serviceApp -Admin $security
This example retrieves the SPObjectSecurity object corresponding to the administrator ACL on a service application, and removes a user from that ACL. The removed an administrator for the service application $serviceApp
.