Skip to content

v1.2.5 Fixed Graph policy fetch limits for large role sets (>20)

Choose a tag to compare

@Noble-Effeciency13 Noble-Effeciency13 released this 14 Aug 07:52
· 15 commits to main since this release

What’s fixed

  • Microsoft Graph query limitation when collecting role policies for large sets (e.g., >20 eligible roles of the same type). Implemented chunked batching and a REST-based query path with pagination so policies are consistently retrieved at scale.
  • Reliable fallback to per-item fetching when complex filters are rejected or return zero results.
  • Corrected control flow in Get-PIMPoliciesBatch; ensured -ErrorAction Stop so fallbacks trigger properly.
  • Regression removal: transient 400 InvalidResource/InvalidFilter introduced during iteration has been resolved.

Improvements

  • Performance: Replaced array concatenations with ArrayList/AddRange in hot paths.
  • Stability: Flattened ArrayList before policy mapping; treat InvalidResource like InvalidFilter.
  • Caching: Memorized Administrative Unit and scope display names in Get-ScopeDisplayName.

Update

Install-Module PIMActivation -Scope CurrentUser -Force
Start-PIMActivation

Links