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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

User identity for row level Security

I'd like to have a generic userid that can be used to implement row level Security in sql2016. Something similar like DAX Username but then as a Global variable that can be used as a parameter for scope setting.
Status: Needs Votes
Comments
koenverbeeck1
New Member
This is already possible. You can use the USERNAME () function in Row Level Security. An explanation: http://sqlkover.com/dynamic-security-in-power-bi/
frank42
New Member
'It is still not possible to pass the powerbi user name to azure sql and apply a row-level security based on the user name there. @Koen The link you have mentioned filters the data in PowerBI not in Azure SQL.
hans_mueller
New Member
unfortunatelly this is not possibl ein direct query mode
me35
New Member
This may be similar to this request where we are trying to get User specific filters for RLS https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/15684009-add-a-default-role-for-row-level-security
fbcideas_migusr
New Member
Status changed to: Needs Votes