Announcements
Automating Azure Privileged Identity Management (PIM) tasks using Power Automate can be achieved through the Microsoft Graph API, as there isn't a direct trigger available in Power Automate for Azure PIM events. By leveraging the Microsoft Graph API, you can monitor and manage PIM activities programmatically.
Steps to Set Up Automation:
Set Up Microsoft Graph API Integration:
RoleManagement.ReadWrite.Directory
Create a Power Automate Flow:
GET
https://graph.microsoft.com/beta/roleManagement/directory/roleAssignmentScheduleRequests?$filter=status eq 'PendingApproval'
PATCH
https://graph.microsoft.com/beta/roleManagement/directory/roleAssignmentApprovals/{approvalId}/steps/{stepId}
Content-Type: application/json
{ "reviewResult": "Approve", "justification": "Approved via automated flow" }
{approvalId}
{stepId}
------------------------------------------------
⭐ If this was helpful, please like and mark as a verified answer to help others find this too!
Always glad to help! 💯💯💯💯💯
Tom
Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Haque 592
Valantis 340
11manish 284