Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.57 KB

File metadata and controls

62 lines (43 loc) · 1.57 KB
external help file sharepointonline.xml
Module Name Microsoft.Online.SharePoint.PowerShell
online version https://learn.microsoft.com/powershell/module/sharepoint-online/deny-spotenantserviceprincipalpermissionrequest
applicable SharePoint Online
title Deny-SPOTenantServicePrincipalPermissionRequest
schema 2.0.0
author trent-green
ms.author trgreen
ms.reviewer

Deny-SPOTenantServicePrincipalPermissionRequest

SYNOPSIS

Denies a permission request for the current tenant's "SharePoint Online Client" service principal

SYNTAX

Default

Deny-SPOTenantServicePrincipalPermissionRequest -RequestId <Guid>

DESCRIPTION

Denies a permission request for the current tenant's "SharePoint Online Client" service principal

Denying a permission request removes that request from the list of permission requests.

EXAMPLES

------------------EXAMPLE 1------------------

$requests = Get-SPOTenantServicePrincipalPermissionRequests
$requestToDeny = $requests | ? { $_.Resource -eq 'Office 365 SharePoint Online' -and $_.Scope -eq 'MyFiles.Read' } | Select-Object -First 1

if ($requestToDeny -ne $null)
{
    Deny-SPOTenantServicePrincipalPermissionRequest -RequestId $requestToDeny.Id
}

Denies the permission request for the 'Office 365 SharePoint Online' resource with scope claim 'MyFiles.Read'. If there is no request with those properties, then no deny action will be taken.

PARAMETERS

-RequestId

The ID of the permission request to deny

Type: Guid

Required: True
Position: Named
Accept pipeline input: False