Clear-MsIdAppConsent.ps1

<#
.SYNOPSIS
    Remove Existing Consent to an Azure AD Service Principal.
    
.DESCRIPTION
    This command requires the MS Graph SDK PowerShell Module to have a minimum of the following consented scopes:
    Application.Read.All
    DelegatedPermissionGrant.ReadWrite.All
    
.EXAMPLE
    PS > Clear-MsIdAppConsent '10000000-0000-0000-0000-000000000001' -PrincipalId '20000000-0000-0000-0000-000000000002' -IncludeTenantWideAdminConsent

    Remove existing consent to servicePrincipal '10000000-0000-0000-0000-000000000001' by user '20000000-0000-0000-0000-000000000002'.

.EXAMPLE
    PS > Clear-MsIdAppConsent '10000000-0000-0000-0000-000000000001' -TenantWideAdminConsent

    Remove tenant-wide admin consent to servicePrincipal '10000000-0000-0000-0000-000000000001'.

.EXAMPLE
    PS > Clear-MsIdAppConsent '10000000-0000-0000-0000-000000000001' -All

    Remove all consent to servicePrincipal '10000000-0000-0000-0000-000000000001'.

.INPUTS
    System.String

#>

function Clear-MsIdAppConsent {
    [CmdletBinding()]
    [OutputType()]
    param (
        # AppId or ObjectId of the service principal
        [Parameter(Mandatory = $true, ValueFromPipeline = $true, Position = 1)]
        [string] $ClientId,
        # Remove all existing consent to the service principal
        [Parameter(Mandatory = $true, ParameterSetName = 'All')]
        [switch] $All,
        # Remove consent to the service principal for the specified users. Does not include Tenant-Wide Admin Consent.
        [Parameter(Mandatory = $false, ParameterSetName = 'Filtered')]
        [string[]] $PrincipalId,
        # Remove tenant-wide admin consent to the service principal
        [Parameter(Mandatory = $false, ParameterSetName = 'Filtered')]
        [switch] $TenantWideAdminConsent
    )

    begin {
        ## Initialize Critical Dependencies
        $CriticalError = $null
        try {
            Import-Module Microsoft.Graph.Identity.SignIns -MinimumVersion 1.9.2 -ErrorAction Stop
            Import-Module Microsoft.Graph.Applications -MinimumVersion 1.9.2 -ErrorAction Stop
        }
        catch { Write-Error -ErrorRecord $_ -ErrorVariable CriticalError; return }
    }

    process {
        if ($CriticalError) { return }

        ## Check for service principal by appId
        $servicePrincipalId = Get-MgServicePrincipal -Filter "appId eq '$AppId'" -Select id | Select-Object -ExpandProperty id
        ## If nothing is returned, use provided ClientId as servicePrincipalId
        if (!$servicePrincipalId) { $servicePrincipalId = $Id }

        ## Get all Oauth2PermissionGrants and remove the requested entries
        $oauth2PermissionGrants = Get-MgServicePrincipalOauth2PermissionGrant -ServicePrincipalId $servicePrincipalId 
        foreach ($oauth2PermissionGrant in $oauth2PermissionGrants) {
            switch ($PSCmdlet.ParameterSetName) {
                'All' {
                    Remove-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oauth2PermissionGrant.Id
                }
                'Filtered' {
                    if ($oauth2PermissionGrant.ConsentType -eq 'Principal' -and $oauth2PermissionGrant.PrincipalId -in $PrincipalId) {
                        Remove-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oauth2PermissionGrant.Id
                    }
                    elseif ($oauth2PermissionGrant.ConsentType -eq 'AllPrincipals' -and $TenantWideAdminConsent) {
                        Remove-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oauth2PermissionGrant.Id
                    }
                }
            }
        }
    }
}

# SIG # Begin signature block
# MIInrgYJKoZIhvcNAQcCoIInnzCCJ5sCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDWjEPTIfZnXBtf
# lukEiF6mZB6MM9iOWb6todvLsa2kK6CCDYUwggYDMIID66ADAgECAhMzAAACzfNk
# v/jUTF1RAAAAAALNMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p
# bmcgUENBIDIwMTEwHhcNMjIw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