Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jamesom
Regular Visitor

Using username() to obfuscate user information

Hi,

 

We provide client-facing embedded PBI reports on our cloud platform.

We have recently added Role-Based Access control to our platform, and the call to the embedded report passes a switch code and can be accessed within the report through username()

I need to obfuscate user data based on the username() value.

 

What I would like to be able to do is......

Column = if(username() = "A", "Obfuscate Data", [Name])

This would obfuscate all [names] for the given list. Measure only gives an aggregate.

 

Any help would be really appreciated.

Thank You.

 

 

 

1 REPLY 1
Nishantjain
Continued Contributor
Continued Contributor

@jamesom 

 

have you tried using row level security?

 

Row Level Security - Power BI Embedded  

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors