PIMActivation

1.2.5

PowerShell module for managing Microsoft Entra ID Privileged Identity Management (PIM) role activations through a modern GUI interface. Supports authentication context, bulk operations, and policy compliance. Developed with AI assistance. Requires PowerShell 7+.

Minimum PowerShell version

7.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PIMActivation

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PIMActivation

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2025 Sebastian Flæng Markdanner. All rights reserved.

Package Details

Author(s)

  • Sebastian Flæng Markdanner

Tags

PIM PrivilegedIdentityManagement EntraID AzureAD Identity Governance RBAC GUI Authentication ConditionalAccess Security Microsoft Graph

Functions

Start-PIMActivation

PSEditions

Core

Dependencies

This module has no dependencies.

Release Notes

## PIMActivation v1.2.5

### 🔧 Fixes
- Resolved Microsoft Graph query limitations when collecting role policies for large sets (e.g., >20 eligible roles of the same type). Implemented chunked batching and a REST-based path with pagination so policies are fetched reliably at scale.
- Added robust fallback to per-item fetching when the service rejects complex filters or returns zero results.
- Corrected control flow and ensured -ErrorAction Stop on policy assignment calls so fallbacks always trigger when needed.
- Addressed a transient InvalidResource/InvalidFilter regression introduced during the fix and removed it.

### ⚡ Improvements
- Performance: Replaced array concatenations with ArrayList/AddRange in hot paths (role collection and batch aggregations).
- Stability: Flattened ArrayList before mapping policies; treat InvalidResource like InvalidFilter for resilient behavior.
- Caching: Memoized scope and AU display name lookups in Get-ScopeDisplayName to reduce repeated Graph calls.

### 📚 More
- Changelog: https://github.com/Noble-Effeciency13/PIMActivation/blob/main/CHANGELOG.md
- Releases:  https://github.com/Noble-Effeciency13/PIMActivation/releases

PowerShell module for Microsoft Entra ID PIM role activations with a modern GUI. Requires PowerShell 7+.

FileList

Version History

Version Downloads Last updated
1.2.5 (current version) 5 8/14/2025
1.2.4 111 8/4/2025
1.2.3 9 8/4/2025
1.2.2 15 8/4/2025
1.2.1 9 8/4/2025
1.2.0 22 8/1/2025
1.1.1 6 7/30/2025
1.1.0 8 7/30/2025
1.0.1 7 7/29/2025
1.0.0 6 7/29/2025
Show more