cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kieran-zz
Regular Visitor

Flow using logged in user credentials rather than specified values

I have created a flow that accesses a SQL database using an AD user we have created specifically for powerapps so that it is not tied to any single colleague.

 

When a new user tries to use the powerapp, the flow seems to use their user credentials to access the SQL database rather than the one specified. This results in an error due to that user not having database access.

 

Is there a way to ensure the flow only uses the user-specified rather than being overwritten based on who the user is?

I would rather avoid providing database access to all users (including business users)

1 REPLY 1
Suchitra1996
Resolver II
Resolver II

@Kieran-zz 

 

The flow runs under the context of the user when triggered from PowerApps. This is why it is using the user credentials while running and hence failing.

 

Try creating a parent flow, which in turn calls the child flow when you trigger from Power Apps. In this case, the user context is not passed from Power Apps to the child flow and it will use the connection that you can specify in the child flow. 

 

hope this helps.

 


--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,111)