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 Platform Community / Forums / Power Apps / Flow used by powerapp ...
Power Apps
Answered

Flow used by powerapp run with wrong user

(0) ShareShare
ReportReport
Posted on by 13

Hi,

I have a flow that connect to SharePoint to upload image. the flow use my o365 connection.

then I have a powerapp to use this flow. and it works well.

 

then I shared my powerapp to other users. 

they can see the powerapp, and then can run it, 

however , when they upload image using powerapp. the image is trying to upload use their o365 account, instead of mine.

Is there a way that the flow always use my connection does not matter who run the powerapp?

 

Thanks

 

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    HI @gli ,

    Could you please share a bit more about your scenario?

    Do you want the flow to upload image into your SP library using your own account rather than these end users' account?

     

    Actually, when you share an app that includes a flow (add a flow connection), users who run the app will be prompted to confirm or update any connections on which the flow relies. In other words, the end users would be prompted to create their own connection to SharePoint connector in the flow.

    Please check the following article for more details:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/share-app-resources#flows

     

    Currently, within PowerApps & Microsoft Flow, there is no way to force the flow to use your own account to create connection rather than others.

     

    If you want the flow to upload image into your SP library using your own account rather than these end users' account, you could consider share your Office 365 account with the end users, and ask them use your account to create connection to the SharePoint connector in the flow.

    In addition, you could also consider take a try to create a service account on your side, and share this service account with your users, ask them to use this service account to create a connection to SharePoint connector in your flow.

     

    Best regards,

  • gli Profile Picture
    13 on at

    Thanks Kris,

    It is not a good design that I cannot use the common account for flow and hide it from end user.

    as a result, I will have to give all users contibute permission to the sharepoint library so they can use their account to run the flow.

     

    but thanks for confirm that limitation. 

     

  • kelvint Profile Picture
    2 on at

    For my case, I created a custom connector that call Power BI REST API, Group - Get Groups which is expected to return a list of work spaces the current user has access to. In the Custom Connector, I used my credential for the connection. Then I created a flow which called the custom connector and it did return list of work spaces as per my credential; I was using my credential in the custom connector, so this is expected. Everything seems promising but ....

     

    I then created a Power Apps with a button to call the flow (with that custom connector) and shared it with others. However, when the shared user uses the Power Apps, it always returned the list of work spaces of the credential of the connection configured in the custom connector, instead of theirs!

     

    I want it to return the work spaces of the user who uses the Power App.

     

    Any thought and advice on getting it to work as expected?

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 84

#2
WarrenBelz Profile Picture

WarrenBelz 79 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 40 Super User 2026 Season 1

Last 30 days Overall leaderboard