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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
apenaranda
Post Partisan
Post Partisan

PowerBiEmbedded-master - RowLevelSecurityDemo

Hello,
I am working with a Microsoft project for embedded power bi, the project specifically is “PowerBiEmbedded-master - RowLevelSecurityDemo”

This project makes you log into a table of users that it has created, which I am interested in doing, so that users do not have to access twice with username and password, I would like to know a little about how this login works.
When you access the web for the first time, it already checks if you have accessed or not, which I don't know where it does it within the project. And if I could, the good thing would be from a variable that I pass to it, I would buy it with one of the logins that it has in the BBDD.
If you could help me… thank you very much.

1 REPLY 1
Anonymous
Not applicable

Hi @apenaranda ,

Which embedded analytics method are you using? Embed content for customersEmbed content for your organization? Is it static RLS or dynamic RLS applied in the report? If you're embedding to Power BI users (user owns data), within your organization, RLS works the same as it does within the Power BI service directly. There's nothing more you need to do in your application. If you're embedding for non-Power BI users (app owns data), it requires applying the user and role to an embed token, embed tokens are used to grant a user access to a specific Power BI Embedded report. Power BI Embedded doesn't have any specific information on who your user is. For RLS to work, you need to pass some additional context as part of your embed token in the form of identities(username, roles and dataset). 

{
    "accessLevel": "View",
    "identities": [
        {
            "username": "EffectiveIdentity",
            "roles": [ "Role1", "Role2" ],
            "datasets": [ "fe0a1aeb-f6a4-4b27-a2d3-b5df3bb28bdc" ]
        }
    ]
}

You can review the following links for more details and get the answer of your question...

How do you use RLS with Power BI Embedded??? (Mainly talking about the embedded content for customers with RLS)

Row-level security with Power BI Embedded

Power BI Embedded: Convention-based dynamic Row-level Security

Enable Row Level Security (RLS) and Embed PowerBI Dashboard in an Application

yingyinr_1-1649660018360.png

Best Regards

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.