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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Frequent Visitor

Dynamic RLS with numbers instead of email addresses?

I am working on an embedded Power BI solution for our customers.


I want to use row level security with Account IDs (e.g., '22343') instead of email addresses (e.g., ''). Then, a developer on my team will use this information to pass embed tokens.


All of the online videos and blogs seem that I've research so far only use variations of USERPRINCIPAL() and USER NAME() when setting up RLS.


Is it possible to set up RLS with a number value? Am I thinking about this problem right way?


Thanks in advance.



Super User
Super User

@RethinkBI , You need to have table with email and account ID, account id can join with other tables. email id in this table can be filtered with USERPRINCIPAL


Only in the case of embedded power bi you can send USERPRINCIPAL of you choice.

Thank you Amit....a developer colleague suggested this DAX code and it worked:

Account ID = Value(USERNAME())

Helpful resources

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.


Power BI Monthly Update - May 2024

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


Fabric certifications survey

Certification feedback opportunity for the community.