top of page

Report Entra App Consent Requests

  • romanvitsinskyi
  • Oct 28
  • 1 min read
Entra IGA

For those who has to deal with Entra ID application consents and needs to report all app consent request - here is script you can use. Simply run it with appropriate Graph API permissions and Entra roles assigned. Report will be saved as $consentrequests variable, simply export to csv after running the script.


$AppConsentRequests = Get-MgIdentityGovernanceAppConsentRequest -All
$consentrequests = @()

foreach ($AppConsentRequest in $AppConsentRequests)
      {
       $UserConsentRequest = Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest -AppConsentRequestId $($AppConsentRequest.Id)

$consentrequests += $UserConsentRequest | Select CreatedDateTime, @{N="Application"; E={$AppConsentRequest.AppDisplayName}}, @{N="Requestor"; E={$_.CreatedBy.User.DisplayName}},`
@{N="Permissions"; E={$AppConsentRequest.PendingScopes.displayname | Out-String}},`
Status,Reason,Id

      }

References:



 
 
bottom of page