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
cyan
Helper I
Helper I

Embed token Identities Array

Hello everyone,

Is there a way to find out if a Power BI report accepts the identities array in the embed token request, before requesting the embed token (or find out if a report is configured to accept RLS or not before we made the embed token request to the API)?

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @cyan,

 

May I ask if it's necessary to find out if a report accepts RLS? We can design it. Please refer to developer/embedded-row-level-security. Is the Identities Array like below?

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

Best Regards,

Dale

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

Hi @v-jiascu-msft,

 

The reason is that in my API I want to use the same method to getReport for reports with or without RLS, currently I don't know if a report accepts RLS or not, so if I called the getReport method (which I generate the embed token in this method as well) and the requested report has RLS I have to pass the identites array like you mentioned in your comment, but if it doesn't require RLS I should only pass the accessLevel, so I need to know if it accepts RLS or not so that I construct the right parameters for the  GenerateTokenRequest because otherwise it will throw an HttpOperationException.

And yes the identities is like you mentioned.

Could you please let me know if my request is feasible or if you have other suggestions for my case?

 

Thanks.

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.