Create a free Enterprise App Permissions report in Microsoft Entra

In a previous blog post, I shared a script that reports all permissions assigned to applications in Microsoft Entra. You can check it out here. While the script is useful, it can be improved by providing more detailed information and a better formatted output.

Having clear visibility into the Enterprise Applications (or Service Principals) in your tenant is crucial. Misconfigured or overprivileged applications can pose serious security risks, potentially leading to breaches. To help mitigate this, I’ve created an interactive HTML report that provides detailed insights into both first and third-party applications in your tenant.

Prerequisites

To run this report, you’ll need PowerShell v7.x and the Microsoft.Graph.Authentication module installed.

When you execute the script, it will request admin consent for the following Graph API permissions:

  • AuditLog.Read.All
  • Organization.Read.All
  • Application.Read.All
  • Directory.Read.All
You must provide consent to these permissions by signing in as a Global Administrator.

Report features

The Entra Application Permissions Report provides detailed insights into first and third-party applications in your tenant. Key features include:

  • Summary view: Displays the total number of applications, including: Third-party applications, Applications with delegated permissions and Applications with application permissions

  • Detailed table view: Lists all applications along with their status, usage, permissions, sign-in methods, credentials, and more.

  • Built-in filters: Easily find specific applications by filtering based on type, source, activity, and credentials.

  • Security risk indicator: Highlights high-risk applications and allows you to filter them instantly for further review.

  • Export to CSV: Export the currently selected applications to CSV file.

  • Print report: Print the currently selected applications.

Entra Application Permissions Report by Daniel Bradley
Entra Application Permissions Report by Daniel Bradley

Installation

The script can be installed directly from the PowerShell gallery here, by running the following command.

Install-Script -Name Invoke-EntraAppReport

If prompted to install from an untrusted repository, ensure you choose Yes.

Installing the script

Running the Entra Application Permissions report

Currently, the script only supports the -outpath parameter, allowing you to choose where the report output is saved. If you do not define this parameter, the file will be saved in the directory where the script has been initiated from. 

Once the script completes (which should take less than a minute), your default browser window will launch, opening the HTML report. Here is an example of running the script:

Invoke-EntraAppReport -outpath C:\temp

This script will first check if you have the required permissions available to you in your Microsoft Graph PowerShell session. If you don’t, it will try to connect to Microsoft Graph with the required permissions to run the script. At each stage of the script a progress indicator will be displayed on the screen.

Invoke-EntraAppReport

Daniel Bradley

Daniel Bradley is a UK-based technical architect and Microsoft MVP in Security. He specialises in Microsoft Entra, Intune, and Microsoft Graph PowerShell and is the author of Microsoft Graph PowerShell for Administrators. He writes and edits Our Cloud Network using experience gained from working with Microsoft cloud environments.

This Post Has 17 Comments

  1. Gwyn

    Hello. Wery nice script, but the parameter that works is -outpath, instead of -output. Thanks!

  2. Ramon

    Hi Daniel,

    Very nice work.

    One esthetic comment though.
    In my system the Fields “Search Applications” and “Search Permissions” appear with strange chars overlapped.
    Also, the headers are not showing up/down arrows for sorting. Instead, also strange chars like â [cross]-ï [rectangle]

  3. Irshad Ahmed

    Thanks for shareing such nice script. one point, can we add “Secret Expiry Detail” detail in this report?

  4. Jeremy

    Hello ! Thank you for the script, very nice job. Only issue I see is that I ran it in my environment and the html file is displaying a lot of applications with no activity as delegated/application sign-in, but when I check on the Entra ID side, I do find user sign-ins or service principal sign-ins.
    Thanks !

    1. Hi Jeremy,

      For performance, the script obtains the sign-in activity from the report API, not from the sign-in logs.. that would drastically impact performance of the script. I’ll raise this to the Graph API team at Microsoft!

  5. Mahesh

    It’s not fetching all enterprise applications.

    1. Can you explain a scenario where it is not? Of-course there is no need to report on built-in service principals…

  6. Duban Felipe Moreno

    Hi, nice script, Good Job

  7. Sonny

    Great script, thanks!

    I added the following as we are automating this and sending a monthly email with the report, this I hope will always grab the most recent written file in the directory I have set, seems to work for initial tests:

    Get-ChildItem -Path $Path | Sort-Object -Property @{Expression = “LastWriteTime”; Descending = $true} | Select-Object -First 1

    Let me know if you believe there to be a simpler way to do this!

    1. Hey Sonny,

      If you run this through Azure Automation, you can modify the local path to use the temporary storage, which will clear itself down between runs anyway 🙂

  8. Vlad Johansen

    Hi Daniel, just tried your powershell script, but i don’t get all information, and was only able to use 2.1 version. For example it shows be only Admin consent info on 1 application, not user consent. I also have another app in entra which was not detected at all, it has many user permissions assigned.

    1. Hi Vlad, what are the problems with version 2.2? The focus of the script is admin consent, user consent can be easily controlled at tenant level 🙂

  9. Ed Penczak

    Hello Daniel,

    This script is fantastic; however, it appears to only report permissions for Microsoft Graph. Is there a way to expand it to include all permissions assigned to the application (for example, Power BI, Dynamics, Office 365 Exchange Online, etc.)?

Leave a Reply