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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
NeerajaBen
Frequent Visitor

Token based Identity in Azure SQL database

Hi All,

 

We have a request from business to embed power bi reports in web app and implement RLS.However they want to reuse the RLS implementation in SQL server and not use the power BI RLS feature. For this we are using 'token base identity with Azure SQL Database'

https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-row-level-security#token-based...

 

On passing identity blob object to embed code we are getting below error for few users(for certain users it works fine).

{"error":{"code":"InvalidRequest","message":"Identity blob value size exceeds size limit of 6144 bytes"}}
On decoding the access token recieved we could see it also has groups information in it and for users with error has more number of groups information which is being appended to access token. Is there anyway to remove groups claims from access token recieved from AD.
 
Thanks & Regards,
Neeraja
1 REPLY 1
nandukrishnavs
Community Champion
Community Champion

@NeerajaBen 

Please go through this link: https://docs.microsoft.com/en-us/rest/api/power-bi/embedtoken

 

I think you are using Generate Token method, please try with GenerateTokenInGroup

 



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.