Skip to content

Instantly share code, notes, and snippets.

@ChristianGalla
ChristianGalla / GetUniquePermissionCount.ps1
Created April 14, 2026 07:17
SharePoint Online get unique permission count of list
# Configuration
$siteUrl = "https://example.sharepoint.com/sites/example"
$clientId = "XXXX-YYYY-ZZZ" # id of the azrue app registration (having delegated sites read permissions)
$listTitle = "MyListName"
# Program
$ErrorActionPreference = "Stop"