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
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
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.