Showing results for 
Search instead for 
Did you mean: 
Continued Contributor
Continued Contributor

Stop using shared sql server credentials

Hey everyone, 


I created a Power Apps app in Power BI which gets data from an On-Prem SQL Server (using a gateway). If I share this Power BI Report and App (you need to share both so users could access them), I also have to share the SQL Server connection with the users/org (Permissions: "Can use") so they have access to the database. My SQL Server authentication type is "Windows Authentication". I used Row Level Security (RLS) within Power BI to only show specific entries to the users and this filter is also applied to the Power Apps app within the Report.


Following question: Because the SQL Server connection is shared with the whole organization, everyone could just create a new app in Power Apps and use this connection to access all items within the database (filtering is not applied). Is there a way to stop users from using this connection within other apps or to configure the connection that users are using their credentials?


P.S.: I don't use Azure AD Connect (AADC) in this scenario, my users are cloud-only and I created a test environment within an Azure VM. Is there maybe a way to pass authentication using AADC?


Thanks in advance!


Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,099)