public/Remove-AppPermission.ps1

<#
.SYNOPSIS
  This function removes application permissions from an app in Entra ID.
 
.DESCRIPTION
  The Remove-AppPermission function uses the Microsoft Graph API to remove application permissions from an app in Entra ID.
  It requires the Microsoft.Graph.Authentication module to authenticate to the Graph API.
 
.PARAMETER tenantId
  Optional. The ID of the tenant where the app resides.
 
.PARAMETER objectId
  Mandatory. The object ID of the app from which permissions will be removed. This parameter is mandatory for the 'ObjectId' parameter set.
 
.PARAMETER appId
  Mandatory. The application ID of the app from which permissions will be removed. This parameter is mandatory for the 'AppId' parameter set.
 
.PARAMETER referenceAppId
  Optional. The application ID of the reference app. This is used to fetch the app roles that will be removed.
  By default, it is set to the well-known Graph API ID.
 
.PARAMETER referenceAppName
  Optional. The display name of the reference app. This is used to fetch the app roles that will be removed.
 
.PARAMETER appPermissions
  Mandatory. An array of permissions that will be removed from the app. This parameter is mandatory.
 
.PARAMETER silent
  Optional. A switch parameter. If provided, the function will not output anything.
 
.EXAMPLE
  Remove-AppPermission -tenantId 'your-tenant-id' -appId 'your-app-id' -appPermissions @('Permission1', 'Permission2')
 
.EXAMPLE
  Remove-AppPermission -appId 'your-app-id' -appPermissions @('User.Read.All')
#>


function Remove-AppPermission {
  [CmdletBinding()]
  param (
    [Parameter()]
    [String]
    $tenantId,
    [Parameter(Mandatory, ValueFromPipelineByPropertyName, ValueFromPipeline, ParameterSetName = 'ObjectId')]
    [Parameter(Mandatory, ValueFromPipelineByPropertyName, ValueFromPipeline, ParameterSetName = 'referenceAppId')]
    [Parameter(Mandatory, ValueFromPipelineByPropertyName, ValueFromPipeline, ParameterSetName = 'referenceAppName')]
    [string]
    $objectId,
    [Parameter(Mandatory, ValueFromPipelineByPropertyName, ValueFromPipeline, ParameterSetName = 'AppId')]
    [Parameter(Mandatory, ValueFromPipelineByPropertyName, ValueFromPipeline, ParameterSetName = 'referenceAppId')]
    [Parameter(Mandatory, ValueFromPipelineByPropertyName, ValueFromPipeline, ParameterSetName = 'referenceAppName')]
    [string]
    $appId,
    [Parameter(ParameterSetName = 'AppId')]
    [Parameter(ParameterSetName = 'ObjectId')]
    [Parameter(ParameterSetName = 'referenceAppId')]
    [String]
    $referenceAppId = "00000003-0000-0000-c000-000000000000", # Well known Graph API ID
    [Parameter(ParameterSetName = 'AppId')]
    [Parameter(ParameterSetName = 'ObjectId')]
    [Parameter(ParameterSetName = 'referenceAppName')]
    [String]
    $referenceAppName,
    [Parameter(Mandatory)]
    [array]
    $appPermissions,
    [Parameter()]
    [switch]
    $silent
  )
  
  Begin {
    try {
      Import-Module Microsoft.Graph.Authentication -ErrorAction Stop
    }
    catch {
      Throw "Microsoft.Graph.Authentication module cannot be loaded"
    }
    if (-not (Get-MgContext)) { 
      Write-Verbose "No MgGraph context found, executing Connect-MgGraph"
      Connect-MgGraph
    }
  }
  Process {
    $baseUri = $appId ? "/beta/servicePrincipals(appId='$appId')" : "/beta/servicePrincipals/$objectId"
    $appAssignments = Invoke-GraphApiRequest -Uri "$baseUri/appRoleAssignments"
    $referenceAppRegistration = $referenceAppName ? (Invoke-GraphApiRequest -Uri "/beta/servicePrincipals?`$filter=displayName eq '$referenceAppName'") : (Invoke-GraphApiRequest -Uri "/beta/servicePrincipals(appId='$referenceAppId')")
    $appRoles = $referenceAppRegistration.appRoles | Where-Object { $appPermissions -contains $_.Value -and $_.allowedMemberTypes -eq 'Application' }
    foreach ($appRole in $appRoles) {
      $assignment = $appAssignments | Where-Object { $_.appRoleId -eq $appRole.id }
      if ($assignment) {
        try {
          $silent ? ($null = Invoke-GraphApiRequest -uri "/beta/servicePrincipals(appId='$referenceAppId')/appRoleAssignedTo/$($assignment.id)" -method delete) : (Invoke-GraphApiRequest -uri "/beta/servicePrincipals(appId='$referenceAppId')/appRoleAssignedTo/$($assignment.id)" -method delete)
        }
        catch {
          if ($_.ErrorDetails.Message.contains('does not exist or one of its queried reference-property objects are not present.')) { 
            Write-Warning 'Assignment id not found' 
          }
          else {
            throw $_
          }
        }
      }
      else {
        Write-Verbose "No assignment found for $($appRole.value)"
      }
    }
  }
  End {}
}

# SIG # Begin signature block
# MIImwgYJKoZIhvcNAQcCoIImszCCJq8CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUS6uOiqkANwtQ/noH0rcijskh
# R6aggh/UMIIFbzCCBFegAwIBAgIQSPyTtGBVlI02p8mKidaUFjANBgkqhkiG9w0B
# AQwFADB7MQswCQYDVQQGEwJHQjEbMBkGA1UECAwSR3JlYXRlciBNYW5jaGVzdGVy
# MRAwDgYDVQQHDAdTYWxmb3JkMRowGAYDVQQKDBFDb21vZG8gQ0EgTGltaXRlZDEh
# MB8GA1UEAwwYQUFBIENlcnRpZmljYXRlIFNlcnZpY2VzMB4XDTIxMDUyNTAwMDAw
# MFoXDTI4MTIzMTIzNTk1OVowVjELMAkGA1UEBhMCR0IxGDAWBgNVBAoTD1NlY3Rp
# Z28gTGltaXRlZDEtMCsGA1UEAxMkU2VjdGlnbyBQdWJsaWMgQ29kZSBTaWduaW5n
# IFJvb3QgUjQ2MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAjeeUEiIE
# JHQu/xYjApKKtq42haxH1CORKz7cfeIxoFFvrISR41KKteKW3tCHYySJiv/vEpM7
# fbu2ir29BX8nm2tl06UMabG8STma8W1uquSggyfamg0rUOlLW7O4ZDakfko9qXGr
# YbNzszwLDO/bM1flvjQ345cbXf0fEj2CA3bm+z9m0pQxafptszSswXp43JJQ8mTH
# qi0Eq8Nq6uAvp6fcbtfo/9ohq0C/ue4NnsbZnpnvxt4fqQx2sycgoda6/YDnAdLv
# 64IplXCN/7sVz/7RDzaiLk8ykHRGa0c1E3cFM09jLrgt4b9lpwRrGNhx+swI8m2J
# mRCxrds+LOSqGLDGBwF1Z95t6WNjHjZ/aYm+qkU+blpfj6Fby50whj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