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 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)?
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
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 11 | |
| 8 | |
| 4 | |
| 3 | |
| 3 |