Revoke-SPOTenantServicePrincipalPermission
撤销以前授予“SharePoint Online 客户端”服务主体的权限
语法
Revoke-SPOTenantServicePrincipalPermission
[-ObjectId] <String>
[-Confirm]
[<CommonParameters>]
说明
撤销以前授予“SharePoint Online 客户端”服务主体的权限。
示例
------------------示例 1------------------
$grants = Get-SPOTenantServicePrincipalPermissionGrants
$grantToRemove = $grants | ? { $_.Resource -eq 'Office 365 SharePoint Online' -and $_.Scope -eq 'MyFiles.Read' } | Select-Object -First 1
if ($grantToRemove -ne $null)
{
Revoke-SPOTenantServicePrincipalPermission -ObjectId $grantToRemove.ObjectId
}
撤销与“Office 365 SharePoint Online”资源和范围声明“MyFiles.Read”关联的权限。 如果对这些属性没有权限,则不会执行撤销操作。
参数
-Confirm
提示你在运行 cmdlet 之前进行确认。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-ObjectId
要撤消的权限授予的对象 ID
Type: | string |
Position: | Named |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |