Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Impersonate Flow actions

(0) ShareShare
ReportReport
Posted on by 98

Hello mate,

 

We have got a requirement to update the employees photo in Office 365 - hence I found the handy action "Office 365 > Update my profile photo" - it works only for the users owning the flow - is there any way to impersonate such actions ? 

 

Any alternative approach are welcome.

 

Thanks and regards.

 

fmourtaza_0-1603436910469.png

 

  • Olman Profile Picture
    3 on at
    Re: Impersonate Flow actions

    Even if the @fmourtaza abandoned this approach, this answer should be marked as the correct solution, since the goal is achieved. Too bad he couldn't check it, but it is indeed a solution. In my case, the requirement was to change the access levels of items by actions triggered by a user without those privileges, in which case, this solution was the ideal one.

  • fmourtaza Profile Picture
    98 on at
    Re: Impersonate Flow actions

    Hey @MrPT, thanks for your inputs however I dropped the Flow approach.

     

    Instead I went for Azure WebJobs, I have described the entire steps here

  • MrPT Profile Picture
    4 on at
    Re: Impersonate Flow actions

    Had a similar need and used the manage run only user to decide if the logged in user or another account (e.g. service account) is to be used. did you try that option?

    MrPT_0-1616039862201.png

    here is addition info of how it worked

    Impersonation Trials – PowerAutomate – HeyMrT (wordpress.com)

  • fmourtaza Profile Picture
    98 on at
    Re: Impersonate Flow actions

    @CFernandes 

     

    In fact the flow has 2 actions only

    1. Get the image content

    2. Post the image using HTTP action

     

    so I dont think so decoupling a flow will help here as the length of the image seems a problem.  

     

    As well I am not sure if HTTP action is the optimal approach in this case.

  • CFernandes Profile Picture
    8,283 Most Valuable Professional on at
    Re: Impersonate Flow actions

    @fmourtaza 

     

    Can you decouple the Flow, perhaps run a child Flow under a different connection. Something similar to https://clavinfernandes.wordpress.com/2020/09/04/decouple-the-flow-from-the-power-app-to-prevent-end-user-authentication-using-child-flow/

     

    I have not tried the approch with reference your scenario but it might be worth a try. Also please upvote the idea I mentioned in my previous email if not already done.

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • fmourtaza Profile Picture
    98 on at
    Re: Impersonate Flow actions

    Hi @CFernandes 

     

    Already tried but not getting the desired results - the content image seems too lengthy - I have one post still open in this forum

    https://powerusers.microsoft.com/t5/Using-Flows/Update-user-profilephoto-from-CDS-to-AD-using-Graph-Api/m-p/723260#M18609

     

  • CFernandes Profile Picture
    8,283 Most Valuable Professional on at
    Re: Impersonate Flow actions

    @fmourtaza 

     

    It is not allowed to Impersonate an action in Power Automate, you can vote up the idea at https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Allow-Impersonation-in-Flow-Actions/idi-p/85844 

     

    Perhaps you can use the Graph API using an HTTP action(premium connector) and update the profile.

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow