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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.