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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
JosephBMV
New Member

Power BI Embbed app owns data with RLS

Hello everyone, I am new to the community.
I am carrying out a project with powerbi embedded, my first steps of embedding it in a web page were satisfactory. I use the documentation that microsoft has on their website and I get a good result. My scenario is the owns data app, but now it is required to use RLS in a dynamic way, since it is aimed at external clients without a power bi license. I was using the LINK  example file, I get results when I embed an application without RLS but when I use an application with RLS I get the error:

 

JosephBMV_0-1633111468503.png

I'm not very good at programming, I understand what the user and dynamic role created should pass through, but I can't identify where.

 

Regards Joseph

1 REPLY 1
Anonymous
Not applicable

Hi @JosephBMV 

I think there may be something wrong in the step you create the embedded token. You can have a test to generate Token with RLS from this link. Please check whether you meet the required scopes. (API permission)

For reference: Generate EmbedToken for two datasets with RLS identities and a single report with read-only permissi...

Here is the offical blog about setting RLS in Embedded Report.

For reference: Applying user and role to an embed token

You can use the following Json code below as an example:

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

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.