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
Power BI UX Suggestion: Preserve Selection When Switching Between Report and Model Views
When developing a Power BI report, if I select a visual in Report View and then switch to Model View, the selected table/column context is lost and everything becomes unselected. This can be inconv...Murtaza_Ghafoor1 hour agoSuper UserNew3Views0likes0CommentsPower BI UX Suggestion: Preserve Selection When Switching Between Report and Model Views
When developing a Power BI report, if I select a visual in Report View and then switch to Model View, the selected table/column context is lost and everything becomes unselected. This can be inconv...Murtaza_Ghafoor1 hour agoSuper UserNew4Views0likes0CommentsDefault Scrollable Time-Series Charts to Most Recent Data
Currently, Power BI time-series charts always open scrolled to the earliest (leftmost) date by default, which is inconvenient for reports where users are interested in the most recent (rightmost) dat...CStillwell3 hours agoNew MemberNew3Views0likes0CommentsPower BI Desktop Data Load: Can We Get Better Progress Visibility?
One UX improvement I’d really like to see in Power BI Desktop is better visibility when loading large datasets from Power Query. Currently, when Power Query finishes processing and the data starts l...salmansaifee774 hours agoRegular VisitorNew16Views0likes0CommentsImprove support for calculated tables on remote semantic models
When a report is connected to a remote semantic model, Power BI Desktop allows users to create calculated tables and calculated columns based on that remote model. The issue is that this architectur...alaeddinegaaya8 hours agoNew MemberNew10Views0likes0Comments