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
rw72000Soft
New Member

Specify roles for SSAS directquery

Hello,

 

I need to specify Roles property on SSAS on prem ConnectionString in directquery mode.

The account I used must be part of Admin Role, so that I want to specify a different role for Query.

I can't find any U.I. settings for this neither in Desktop not in Gateway DataSource. I tried uncompressing the pbix, but using this setting seems to corrupt the pbix for PowerBI Desktop.

 

Any Idea would be welcome...

3 REPLIES 3
rw72000Soft
New Member

Any idea ?

v-rongtiep-msft
Community Support
Community Support

Hi @rw72000Soft ,

In Power BI, when connecting SSAS tabular data source in DIRECT QUERY mode, it will directly take the role security defined within Tabular model. We can't "Manage Roles" for Tabular source in Power BI Desktop. To edit roles and corresponding row filters, you have to do it in either SQL Server Data Tools (SSDT) or SQL Server Management Studio (SSMS). Please refer to tutorial below:

 

Tutorial: Dynamic row level security with Analysis services tabular model

 

Best Regards

Community Support Team _ Polly

 

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

 

Thank you for your answer, but you didn't exactly understand my pb :

I've a 2 roles defined for my user in SSAS : one is admin, the other has RLS.

It's mandatory, because it is used to pass effectiveIdentity in some case and customdata in other case.

With powerBI Embedded, I can pass a user AND a role to endorse when querying SSAS from my Web app, but from PowerBI Service, the role (SSAS role) is not a parameter of the gateway DataSource.

Moreover, I can't specify Role in SSAS connection string without corrupting PowerBI report whereas it's a recognized property.

 

How can I achieve it ?

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