public/Add-AppPermission.ps1

<#
.SYNOPSIS
  This function adds application permissions to an app in Entra ID.
 
.DESCRIPTION
  The Add-AppPermission function uses the Microsoft Graph API to add application permissions to 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 to which permissions will be added. This parameter is mandatory for the 'ObjectId' parameter set.
 
.PARAMETER appId
  Mandatory. The application ID of the app to which permissions will be added. 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 assigned.
  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 assigned.
 
.PARAMETER appPermissions
  Mandatory. An array of permissions that will be added to the app. This parameter is mandatory.
 
.PARAMETER silent
  Optional. A switch parameter. If provided, the function will not output anything.
 
.EXAMPLE
  Add-AppPermission -tenantId "your-tenant-id" -appId "your-app-id" -appPermissions @("Permission1", "Permission2")
 
.EXAMPLE
  Add-AppPermission -appId 'your-app-id' -appPermissions @('User.Read.All')
 
.EXAMPLE
  Add-AppPermission -appId 'your-app-id' -appPermissions @('Exchange.ManageAsApp') -referenceAppName 'Office 365 Exchange Online'
#>


function Add-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"
    $app = Invoke-GraphApiRequest -Uri $baseUri
    $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) {
      $params = @{
        principalId = $app.id
        resourceId = $referenceAppRegistration.id
        appRoleId = $appRole.id
      }
      try {
        $silent ? ($null = Invoke-GraphApiRequest -uri "$baseUri/appRoleAssignments" -method post -body $params) : (Invoke-GraphApiRequest -uri "$baseUri/appRoleAssignments" -method post -body $params)
      }
      catch {
        if ($_.ErrorDetails.Message.contains('Permission being assigned already exists on the object')) { 
          Write-Warning 'Permission being assigned already exists on the object' 
        } else {
          throw $_
        }
      }
    }
  }
  End {}
}

# SIG # Begin sign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