PnP PowerShell is including version history in folder size — how do I get size based on latest version only?

When pulling folder sizes with PnP PowerShell, it includes all version history, not just the current file. Looping through File.Versions and grabbing the latest manually works but is painfully slow at scale.

Anyone know a faster way to calculate SharePoint folder/site storage based on latest version only? Graph API, storage metrics endpoint, anything better than iterating every version of every file?

reddit.com
u/xoxoxxy — 1 day ago
▲ 0 r/entra

How to do a CA with app protection policy?

Hi,
I’m looking to figure out how we can block native mobile mail apps (Apple Mail, Samsung Mail, etc.) so users are required to use Microsoft Outlook for email access from mobile.

Web browser login / OWA is approved

The same approach would ideally apply to other apps as well, where we want to restrict access to approved/managed applications only.
Thank you!

reddit.com
u/xoxoxxy — 3 days ago