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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
NovaBI
Helper V
Helper V

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors