Revoke-SPOTenantServicePrincipalPermission
撤銷先前授與「SharePoint Online 用戶端」服務主體的許可權
Syntax
Revoke-SPOTenantServicePrincipalPermission
[-ObjectId] <String>
[-Confirm]
[<CommonParameters>]
Description
撤銷先前授與「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
要撤銷之許可權授與的物件識別碼
Type: | string |
Position: | Named |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |