Forum Discussion
Check logged user
How do I check if the user who logged in to power BI is present in the table that he creates and whether or not he has access to Power BI data?
mtzzwr - Sorry, not quite understanding this. You can use USERPRINCIPALNAME function to get the identity of the user. USERPRINCIPALNAME function (DAX) - DAX | Microsoft Docs
Not quite understanding things beyond that in terms of what you are trying to do.
- Anonymous5 years ago
mtzzwr
You would need to use USERPRINCIPALNAME to perform a dynamic RLS. Please refer to the below link:
USERPRINCIPALNAME – show user name and use it in RLS (DAX – Power Pivot, Power BI) – ExcelTown – kurzy přesně pro Vás
Remember Report Server is not same as Power bi Service: Row-level security (RLS) in Power BI Report Server - Power BI | Microsoft Docs
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
3 Replies
- Greg_DecklerCommunity Champion
mtzzwr - Sorry, not quite understanding this. You can use USERPRINCIPALNAME function to get the identity of the user. USERPRINCIPALNAME function (DAX) - DAX | Microsoft Docs
Not quite understanding things beyond that in terms of what you are trying to do.
- mtzzwrNew Member
can I define a condition to only perform a certain function if my table has the user who is logged in?
- AnonymousNot applicable
mtzzwr
You would need to use USERPRINCIPALNAME to perform a dynamic RLS. Please refer to the below link:
USERPRINCIPALNAME – show user name and use it in RLS (DAX – Power Pivot, Power BI) – ExcelTown – kurzy přesně pro Vás
Remember Report Server is not same as Power bi Service: Row-level security (RLS) in Power BI Report Server - Power BI | Microsoft Docs
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.