Damu_Venkatesan
6 years agoNew Member
Status:
Needs Votes
Standardize USERPRINCIPALNAME() returned value.
Requesting USERPRINCIPALNAME() function to return only the user email address for all users including external guest users. To implement the row level security in Power BI using the logged in user, we can use the USERPRINCIPALNAME() which should return the email address of the person in the Power BI service. For your internal users this shows the correct email address ([email protected]). For guest users (non internal users) defined in the Azure AD for which you want to serve these Power BI dashboards/reports (for example [email protected]), this USERPRINCIPALNAME() returns, live.com#[email protected]. This is by Power BI product design. In your Power BI data model, if you are using the regular email address to filter and apply row level security, you will see these two email addresses as it is ( [email protected] and [email protected]). When the external user ([email protected]) logs in to view the Power BI dashboards/reports, they will not see the data that they are supposed to see. Why? Because the USERPRINCIPALNAME() for the external users returns live.com#[email protected]. So the RLS does not match with what you have in the data model and cannot filter the records and return the appropriate ones that they can see. To make this work, you need to append live.com# in front of the email address when you bring in the data into the Power BI data model and use it for the external users. This is not obvious for the Power BI users and I am not able to find any reference in the Microsoft Power BI documentation online. Ask: USERPRINCIPALNAME() function to return the just the email address by removing the live.com# in Power BI service for external users and make it the same across the board.
3 Comments
- adil_majeedNew MemberI will second this idea
- tchittendenNew MemberAdding my vote, with an amendment: Make USERNAME() function and USERPRINCIPLENAME() function behave the same in Power BI Desktop as it does in Power BI Service.
- fbcideas_migusrNew MemberStatus added:Needs Votes
Recent ideas
Parameterize Dataflow Gen2 data source connection
Allow the Dataflow Gen2 data source connection GUID to be parameterized and stored in a Variable Library. This would allow the same Dataflow to use different connections depending on the workspace/e...frithjof_v49 minutes agoCommunity ChampionNew7Views0likes0CommentsAutomatically match PowerBI chart background color to Powerpoint slide background color
Export PowerBI to PowerPoint slide - Can we define the PowerBI export background color to automatically match the PowerPoint slide background color ? By Default, the PowerBI background color is Whi...jim_chan5 hours agoNew MemberNew7Views0likes0CommentsNew Card Visual - Alignment of Reference Label Values
The latest Power BI Desktop version I'm allowed to use at work currently is Version 2.154.1260.0 (May 2026), so if this request has already been implemented in later versions, please disregard. Othe...nk685f6 hours agoAdvocate INew9Views0likes0CommentsSupport QR codes in the barcode scanner in the Power BI app
I was surprised to find that the barcode scanner inside of a Power BI report in the mobile app only supports scanning barcodes, not QR codes. Our warehouse uses QR codes everywhere, so I cannot use t...Jaap_O_RFH14 hours agoNew MemberNew15Views0likes0Comments