Implementing privileged identity management with azure
Skill autohandai/community-skills/implementing-privileged-identity-management-with-azure
A collection of curated, useful, and safe skills for Autohand Code CLI Agent
npx -y skills add autohandai/community-skills --skill implementing-privileged-identity-management-with-azureAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 9 stars9 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Configure Azure AD Privileged Identity Management (PIM) using Microsoft Graph API to manage eligible role assignments, just-in-time activation, access reviews, and role management policies for zero-trust privileged access.
The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
2.0 KB, 306 tokens by cl100k_base, as published. Nobody here has run it
Implementing Privileged Identity Management with Azure
Overview
Azure AD Privileged Identity Management (PIM) enforces just-in-time privileged access by converting permanent role assignments to eligible assignments that require activation. This skill uses the Microsoft Graph API to enumerate active and eligible role assignments, create eligibility schedule requests, configure role management policies (MFA requirements, approval workflows, maximum activation duration), audit PIM activation logs, and identify over-privileged permanent assignments that should be converted to eligible.
Prerequisites
- Python 3.9+ with
msal,requests - Azure AD application registration with
RoleManagement.ReadWrite.Directory,RoleEligibilitySchedule.ReadWrite.Directorypermissions - Microsoft Entra ID P2 or Microsoft Entra ID Governance license
Key Operations
- List eligible assignments — GET /roleManagement/directory/roleEligibilityScheduleInstances
- Create eligibility requests — POST /roleManagement/directory/roleEligibilityScheduleRequests
- Activate eligible role — POST /roleManagement/directory/roleAssignmentScheduleRequests with action=selfActivate
- Audit role activations — GET /auditLogs/directoryAudits filtered by PIM activities
- Review role policies — GET /policies/roleManagementPolicies to check MFA/approval requirements
Output
JSON audit report with permanent vs. eligible assignment counts, over-privileged accounts, policy compliance status, and recent activation history.
What ships with it: 3 files
26.0 KB alongside SKILL.md, 1 of them executable
references/
- api-reference.md3.5 KB
scripts/
- agent.pyruns11.5 KB
- LICENSE11.0 KB