Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |