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
rnoone
Helper I
Helper I

Does row level security work with embedded non-directquery mode?

I cannot seem to get row level security to work with my model.

I have data loaded to a .pbix file and the pbix file has been loaded to a workspace collection.

This is not directquery. The data is in the model.

 

Should I expect Row Level Security to work for this scenario?

 

1 ACCEPTED SOLUTION


@rnoone wrote:

Ah, thanks. I think I forgot the role name.




@rnoone

RLS works regardless import or direct query mode. Check Row level security with Power BI Embedded.

var embedToken = PowerBIToken.CreateReportEmbedToken(this.workspaceCollection, this.workspaceId, report.Id, "User Name", roleList);'

So have you figured out the problem now?

 

 

View solution in original post

4 REPLIES 4
MWilson929
Frequent Visitor

I've not tried it myself, but have you defined the security roles in the model and passed the role through the API call? Is it working for you with direct query or is this the only way you've tried?

 

Best,

Ah, thanks. I think I forgot the role name.


@rnoone wrote:

Ah, thanks. I think I forgot the role name.




@rnoone

RLS works regardless import or direct query mode. Check Row level security with Power BI Embedded.

var embedToken = PowerBIToken.CreateReportEmbedToken(this.workspaceCollection, this.workspaceId, report.Id, "User Name", roleList);'

So have you figured out the problem now?

 

 

Yes, thank you. I should have just read the manual.

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 Kudoed Authors