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 / Query a SQL Server wit...
Power Apps
Answered

Query a SQL Server with limited SELECT permissions

(0) ShareShare
ReportReport
Posted on by 10

TLDR:  Is it possible to query a SQL table in Power Apps where you are not given SELECT permissions to ALL columns in the table?

 

Hello,

I have a Power App that I built and I'm now working with a DBA to secure the SQL Server connections from my personal account to a service account with limited access.

 

I provided the DBA with a list of the tables/views and columns I need access to.  Internally within my App, I'm even using ShowColumns to limit to those columns.  The DBA provided me with a limited access Service account that has permission to the column fields I requested.

 

However when I change the connection, I get errors related to querying columns that I don't need.  One example error is: "Error when trying to retrieve data from the network: Microsoft SQL: The SELECT permission was denied on column 'Department' of the object ..."

 

I get an error like this for every column it cannot access.  I have "Explicit column selection" enabled in the Settings but this has no bearing (on or off).

 

I even tried rewriting my queries to move the ShowColumns inside the Filter:

 

From this:

 

Set(gblRootUser,
 First(
 AddColumns(
 ShowColumns(
 Filter(ADusers, Email = User().Email),
 "SAMAccountName", "FirstName", "LastName", "Title", "Email", "EmployeeNumber", "EmployeeID"
 ),
 "FullName",
 Concatenate(FirstName, " ", LastName)
 )
 ) 
);

 

 

To this:

 

Set(gblRootUser,
 First(
 AddColumns(
 Filter(
 ShowColumns(
 ADusers,
 "SAMAccountName", "FirstName", "LastName", "Title", "Email", "EmployeeNumber", "EmployeeID"
 ),
 Email = User().Email
 ),
 "FullName",
 Concatenate(FirstName, " ", LastName)
 )
 )
);

 

 

Is there no way to have Power Apps query a table with limited SELECT permissions?

 

Thanks

 

Categories:
I have the same question (0)
  • Verified answer
    maine-geek Profile Picture
    10 on at

    For anyone interested, I got my answer from ChatGPT

     

    ChatGPT_PowerApp_Issue.png

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard