Notifications
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 501 Super User 2025 Season 2
Tomac 323 Moderator
abm abm 237 Most Valuable Professional