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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