web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Suggested Answer

Azure PIM

(1) ShareShare
ReportReport
Posted on by 581
Hi
 
I need to trigger a flow on Azure PIM 
 
I cannot find a trigger for this in Power Automate.
 
I am a Premium user.
 
I'm told a suitable trigger exists, yet i cannot find one
 
Is there any reason why I cannot find a trigger
Categories:
I have the same question (0)
  • Suggested answer
    trice602 Profile Picture
    16,071 Super User 2026 Season 1 on at
    Hi,
     
    Have you tried MS Graph?  Seems to be doable.
     

    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:

    1. Set Up Microsoft Graph API Integration:

      • Register an Application in Azure AD:
        • Navigate to the Azure Portal and register a new application.
        • Configure the necessary API permissions for PIM operations, such as RoleManagement.ReadWrite.Directory.
      • Authenticate:
        • Use OAuth 2.0 to authenticate and obtain access tokens for API calls.
    2. Create a Power Automate Flow:

      • Trigger:
        • Since there's no direct PIM trigger, you can schedule the flow to run at specific intervals or trigger it based on related events.
      • Actions:
        • HTTP Action:
          • Use the HTTP action to make requests to the Microsoft Graph API.
          • For example, to retrieve pending role assignment requests:
            • Method: GET
            • URL: https://graph.microsoft.com/beta/roleManagement/directory/roleAssignmentScheduleRequests?$filter=status eq 'PendingApproval'
          • To approve a request:
            • Method: PATCH
            • URL: https://graph.microsoft.com/beta/roleManagement/directory/roleAssignmentApprovals/{approvalId}/steps/{stepId}
            • Headers: Content-Type: application/json
            • Body:
              {
              "reviewResult": "Approve",
              "justification": "Approved via automated flow"
              }
          • Ensure you replace {approvalId} and {stepId} with actual IDs from the pending requests.
     

    ------------------------------------------------

     

     

    ⭐ 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

  • Lee-Martin Profile Picture
    581 on at
     
    Thank you for responding.
     
    I'm told there are some Microsoft Entra ID triggers - is this correct? if so, is there a reasons (permissions or otherwise) that I cannot see them?
     
    Thanks
  • Suggested answer
    trice602 Profile Picture
    16,071 Super User 2026 Season 1 on at
    Hi,
     
    There are actions and listed below. I haven't seen any triggers specifically though.  
     
     
     
     
     
     
     

    ------------------------------------------------

     

     

    ⭐ 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

  • Lee-Martin Profile Picture
    581 on at
     
    Thank you, however I cannot locate those triggers anywhere in Power Automate when I try and locate them
  • trice602 Profile Picture
    16,071 Super User 2026 Season 1 on at
    Understood.  To clarify, these are actions not triggers so if you are searching for them as a trigger, correct they will not appear. Tom
  • trice602 Profile Picture
    16,071 Super User 2026 Season 1 on at
    Hey there!
     
    I am following up on this post azure pim in this category building flows from 02/11/2025.  I know the post is a little older, but it is a common question here so wanted to take a moment and follow-up. I see there have been 5 replies and 1 likes and asking if your question has been answered.  If so, please help the community out by completing one or more of the following actions!  Thanks in advance!
     
    Easy as 1-2-3 ‼️💯⭐😎🆒🙏
     
    1) Mark a reply as a verified answer - this is essential, and it helps others with the same general question find this thread. ✅
    2) You can also mark one of more replies as a verified answer.  Please take a moment and give the author credit for volunteering their time. ✌️
    3) Like one or more replies.  Kudos always greatly appreciated! 👍
     
    Pro tip:  if you found your own solution or workaround, feel free to add a reply to your own post and mark it as the solution too!  The goal is to get this thread marked with a verified answer by anyone that finds one or more replies helpful!
     
    Again, thanks in advance for reading and responding, always glad to help!  Tom 💯💯💯💯💯
  • trice602 Profile Picture
    16,071 Super User 2026 Season 1 on at
    If I can help with anything else please let me know or tag me in a future post, I enjoy reading and answering questions.  Always glad to help!  Tom 💯💯💯💯💯

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard