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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
NovaBI
Post Patron
Post Patron

Gateway - changed service user, but datasets still refreshable with DirectQuery? ->Not in ImportMode

Hi all,

 

i did a test as I wanted to put in the right service user on a datasource in a Gateway, as the one set up was an admin one.

 

So what i did is the following:

 

Created a direct query report in Desktop. Uploaded to Workspace (Prem.Cap.).

 

Dataset could be updated via DirectQuery/Gateway (under settings: "admin has granted credentials...).

 

When i did change now the user with less privileges on the source database, the dataset is still refreshable. But the table that it is grabbing is 100% restricted from this "new" user in the connection (cross-checked in SSMS, no access).

 

If i do the same exercise with an import mode dataset, it is doing what i was expecting. Its stating in the error message that the schema can not access the requested table under the current context.

 

I am a little bit worried now...as i thought directquery and import mode would be treated the same way in a gateway/datasource.

 

Why can the direct query dataset still refresh data withour any permission?

 

 

1 ACCEPTED SOLUTION

Already done 🙂

View solution in original post

5 REPLIES 5
v-yadongf-msft
Community Support
Community Support

Hi  @NovaBI 

 

I am so glad to hear that your problem has been solved . Please consider Accept it as the solution to help the other members find it more quickly.

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

lbendlin
Super User
Super User

The direct query connection may be using some sort of a credential cache. Cconsider raising a Pro ticket at https://powerbi.microsoft.com/en-us/support/pro/

Already done 🙂

Please let us know the outcome.

It within the escalation team. Nobody could explain it to me by now.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors