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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,470)