Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Read Only DB User

Hello,

 

we are currently trying to use a Read Only PostgreSql user which has only credentials to select from a certain schema.

 

When I connect to that schema with the Read Only user, Power BI cannot resolve the constraints / references between the tables in that schema and display them. It seems Power BI therefore uses the table_constraints to check the constraints, but a read only user that only has SELECT credentials doesn't occur there.

 

The PostgreSql documentation says the following to this table:

"The view table_constraints contains all constraints belonging to tables that the current user owns or has some privilege other than SELECT on."

 

So my question is, is there a possibility to use such a Read Only user in Power BI without giving this user any privilieges except SELECT on the tables? E.g. DBWeaver shows the constraints between the tables in the schema even for this Read Only user without any problems.

 

Thanks and kind regards,

 

Dirk

1 ACCEPTED SOLUTION
Anonymous
Not applicable

For people searching for such a solution in the future: It's detached from Power BI and related to the database. We know extend the privileges by REFERENCES, so the user can do nothing except SELECT and REFERENCES and since he doesn't own a table or something else, a foreign key cannot be created. So he has the right to REFERENCE, but cannot use it at all.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

For people searching for such a solution in the future: It's detached from Power BI and related to the database. We know extend the privileges by REFERENCES, so the user can do nothing except SELECT and REFERENCES and since he doesn't own a table or something else, a foreign key cannot be created. So he has the right to REFERENCE, but cannot use it at all.

amitchandak
Super User
Super User

@Anonymous , power bi to read the schema(Schema Tables) to get the table and column name, make sure it has access to that

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak Not sure, if I understood your answer. The read only user of course has read (SELECT) access to all the tables and columns in the schema. But SELECT only, no INSERT, UPDATE, DELETE, TRUNCATE. But for any reason it seems Power Bi forces the user to have not only SELECT access to the tables, at least when using Postgres. Otherwise, the relations / constraints between the tables are neither shown nor known when importing them into Power Bi.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors