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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.

Top Kudoed Authors