Category Archives: M365Permissions

M365Permissions v1.2.3

Performance improvements and Onenote Notebooks.

Today’s release has a ‘special guest’; Morten (blog)! He completely rewrote the entra user and group retrieval code, greatly improving both performance and total capacity!

Other changes of note:

  1. Add support for Onenote Notebook sharing permissions
  2. Treat anonymous sharing links as ‘deleted’ if the sharing level at the site forbids anonymous sharing

Full changelog here

Download / Use:

M365Permissions module page | Github | PSGallery

M365Permissions v1.2.2

Are you also curious about all those PowerApps and Flows in your environment? Orphaned ones maybe? Or when someone leaves the company?

1.2.2 adds scanning of PowerApps and Flows! Only when using SPN auth. (setup instructions)

In addition to that, I’ve also added provisional support for scans of tenants in USGOV, USDOD and China. Since I don’t have a test tenant there, I’ll have to rely on you to test how it performs there.

Full changelog here

Download / Use:

M365Permissions module page | Github | PSGallery

Scanning the Power Platform

By default, the Power Platform does not allow service principals to use its API’s, but this can be enabled easily.

To allow M365Permissions to scan PowerApps, Flows etc:

  1. Note the GUID of the service principal you’re using to scan with (a.k.a. the app id or client id)
  2. Open a powershell window
  3. Run the following code:
Install-Module -Name "Microsoft.PowerApps.Administration.PowerShell"

Add-PowerAppsAccount

New-PowerAppManagementApp -ApplicationId {APPID}

Where you replace {APPID} with the GUID from step 1

M365Permissions v1.2.1

Yes, we finally have Microsoft Azure! All active and eligible permissions are in scope from the subscription level and below.

If you use a service principal for scanning, be sure to assign read permissions for it to all subscriptions (or lower level resource groups) you want it to index.

Full changelog here

Download / Use:

M365Permissions module page | Github | PSGallery