Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I have a report with dynamic RLS set up and it works. I tested it in the service. Now let's say I have a thousand customers and I am wondering if I have to pass in each customer name to the username parameter in the following example.
Example microsoft article: https://learn.microsoft.com/en-us/power-bi/developer/embedded/cloud-rls
{
"accessLevel": "View",
"identities": [
{
"username": "France",
"roles": [ "CountryDynamic"],
"datasets": [ "fe0a1aeb-f6a4-4b27-a2d3-b5df3bb28bdc" ]
}
]
}
@amitchandak Thank you for responding to my post. My question is specifically about embedding a report with dynamic RLS. I have already implemented and tested the dynamic RLS role in the report and it works. What I am struggling to understand is the commands related to generating and embed token. The part of the article that's highlighted in yellow. Here's the link to the full article : https://learn.microsoft.com/en-us/power-bi/developer/embedded/cloud-rls
These are my questions: Can I use customdata() function for the above username command?
I visited power bi embed playground (https://playground.powerbi.com/en-us/) but I don't see a place to test the RLS out (i.e view as a certain user). May be I am not seeing it. Please help if you have any experience embedding a power bi report with dynamic RLS.
@chat_peters , You need to use userprincipalname and table with email and access and filter dimension
Power BI- Row Level Security(RLS): Handle ALL, UserPrincipalName: https://youtu.be/KVLEnIUo4pc
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 46 | |
| 43 | |
| 26 | |
| 19 |
| User | Count |
|---|---|
| 198 | |
| 125 | |
| 102 | |
| 69 | |
| 53 |