Skip to main content

Power BI

New

User identity for row level Security

Vote (6) Share
Bart vd Bergh's profile image

Bart vd Bergh on 30 Sep 2015 02:55:49

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.

Comments (4)
Bart vd Bergh's profile image Profile Picture

cddbc733 90ad-4f11-a324-fe4f6f243abc on 05 Jul 2020 22:56:11

RE: User identity for row level Security

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

Bart vd Bergh's profile image Profile Picture

90a3194b ba21-437d-b0f2-737fdb84a7bd on 05 Jul 2020 22:45:25

RE: User identity for row level Security

unfortunatelly this is not possibl ein direct query mode

Bart vd Bergh's profile image Profile Picture

4a2e3cff 9787-4149-929c-809f577a3d90 on 05 Jul 2020 22:41:16

RE: User identity for row level Security

'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.

Bart vd Bergh's profile image Profile Picture

7a521a13 45be-4ab3-9818-e5859573b464 on 05 Jul 2020 22:20:29

RE: User identity for row level Security

This is already possible. You can use the USERNAME () function in Row Level Security. An explanation: http://sqlkover.com/dynamic-security-in-power-bi/