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
Rajesh_Rudra
New Member

400- Bad Request - embed token with effective identity is not supported for this datasource

Rajesh_Rudra_0-1743084096094.jpeg

I am trying to crete Embaded token for a report, were i am geting into this issue, and it only happens in lower environments. 
The same Report Deployed to my Prod there i am able to generate the embed token just fine. 

4 REPLIES 4
v-pgoloju
Community Support
Community Support

Hi @Rajesh_Rudra ,

 

we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Thank you.

 

Regards,

Prasanna kumar

V-yubandi-msft
Community Support
Community Support

Hi @Rajesh_Rudra ,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

V-yubandi-msft
Community Support
Community Support

Hi @Rajesh_Rudra ,

We noticed we haven't received a response from you yet, so we wanted to follow up and ensure the solution we provided addressed your issue. If you require any further assistance or have additional questions, please let us know.

Your feedback is valuable to us, and we look forward to hearing from you soon.

 

Thanks..

V-yubandi-msft
Community Support
Community Support

Hi @Rajesh_Rudra ,

This error occurs when effective identity (RLS user impersonation) is not supported for the datasource in your lower environments

 

Datasource Authentication – Use OAuth2 or service principal authentication, as Windows authentication does not support effective identities.

 

Permissions – Ensure the service principal or user has "Read" and "Build" access to the dataset and workspace.

 

API Request Validation – Compare workspace & dataset IDs between lower environments and production.

 

Effective Identity Usage – If the lower environment API request includes effectiveIdentities, try removing it if RLS is not required.

 

Generate an embed token in Power BI embedded analytics - Power BI | Microsoft Learn

 

DirectQuery & XMLA Endpoint – If using DirectQuery, enable XMLA endpoint (Read-Only or Read-Write) in the Power BI portal.

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

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.