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 / Users Prompted for Sha...
Power Apps
Answered

Users Prompted for SharePoint Credentials Despite Service Account Connection

(0) ShareShare
ReportReport
Posted on by 15

I'm facing an issue in Power Apps + Power Automate that I haven't been able to resolve, even after following all known best practices.

 

 Scenario:

 

  • I’ve developed a Canvas App in Power Apps that triggers a flow to upload files to a SharePoint document library.

  • The flow is packaged in a solution and uses a connection reference for SharePoint.

  • During deployment to the target environment, I explicitly bind the SharePoint connection reference to a dedicated service account (ServiceAccount@company.com) that has access to the SharePoint site.

  • In the flow's run-only user settings, I’ve set it so that the app uses “this connection” (the service account) — not the run-only user's own credentials.

  • I repeated the previous step in the target environment

  • The app itself has no SharePoint connection — I’ve confirmed under View > Data Sources that SharePoint is not listed.

  • The flow uses the Power Apps (V2) trigger, and all SharePoint actions are configured using the correct connection reference, which is bound to the service account.


  •  

❗Problem:

 

Despite all of this, end-users are still prompted to authenticate with SharePoint when opening the app or triggering the flow. The prompt asks them to log in with their own SharePoint credentials, which defeats the purpose of using the service account.

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at
    Delete the Flow and save the app (ignore the errors), then fix the run-only users setting in the Flow and open the App and re-add the Flow.
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   
  • MehranDov Profile Picture
    15 on at
    Thank you @WarrenBelz. It had been frustrating for me!

    I just have another question regarding assigning run-only users. It seems that I have to add run-only users to the flow in my development environment before deploying the solution. This way, I need to add all the users in my development environment in order to be able to select them in the run-only users section, which is not an ideal option (they have nothing to do in my dev environment!). Is there a way to leave this section in the flow blank and then adjust it in my target environment after deployment? I tried once, but it didn’t work (the user is prompted to use their own credentials for SharePoint when they open the app)

  • WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at
    The run-only users needs to be set in the target environment - exporting and importing/deploying a Flow does not migrate this setting. You may be able to get away with simply updating the Flow directly after import, but a complete "reset" as per my post should always work.
  • MehranDov Profile Picture
    15 on at
    Thanks @WarrenBelz.

    How can I reset the flow in a managed env? It doesn't allow me to remove the flow from the app and add it again, as you mentioned in your previous post.

    You're right about not migrating this setting from dev to prod. However, it seems that the migration happens behind the scenes, without any indication in the flow settings of the target env. It's strange, but when I set only one "run-only" user in my development environment and then deploy it to a managed env, all users the app is shared with in the target env can access the SharePoint connection I initially defined in the dev environment, without needing to be added in the "run-only" users section of the target env (I didn't modify anything in the target env!).

    When I reverse the process—leaving the "run-only" users section blank in the dev environment and adding users in the target env with the same SharePoint connection—the user is prompted to authenticate with their credentials for SharePoint when they open the app.

    I just don’t get it!

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 638

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard