cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Anonymous
Not applicable

Power Apps Portal Passing GUID in Username() instead of User Email Address

Hi 

 

We are building a Portal for our clients using Power App Portal and have embedded our Power BI reports using liquid tags.  Within our reports we use RLS security based on email address. So we were expecting Power App Portal to send us the user email address when we use Username(). Instead its sending back a GUID.  Is there a way to change what Power Apps Portal is sending us in this parameter or pass the email address in another parameter? 

 

Thanks,

4 REPLIES 4
ssalaskar
New Member

Did anyone found solution? I am facing same problem

Ahad-boop
New Member

Hi! 

 

Did you find a solution to this because we are facing the same issue, we used username() and UPN() as the dax filter but we get the guid in the powerapps portal. the RLS works if we filter by guid but we want to filter by email address

Anonymous
Not applicable

Hi Liang,

 

RLS is enabled in the report and when viewing the report in Power BI service, we do see the email address in the Username(). But once embedded to Power Apps Portal its still shows a GUID.  RLS has been setup on the report. 

tcarrington_0-1625592103695.png

 

tcarrington_1-1625592253438.png

 

 

"{% powerbi authentication_type:"powerbiembedded" path:settings['powerbi_url'] roles:"Test_EmailRole" %}"
 

Thanks,

V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

Is RLS enabled in the report?After that was done, Username() returned the UPN of the user using the report. Note that you may need to refresh the report page to see the result.


Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.