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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Embed User Owns Data

So, I'm trying to include in my application a way of the user enters their username, password, and power BI URL so they can themselves embed the report.

By this, I suppose I should use the User Owns Data way for embedding the reports. To embed the report I'm trying to get the access token by fteching a POST request to "https://login.microsoftonline.com/common/oauth2/token" with the following body parameters:

 

client_id, username, password, resource (https://analysis.windows.net/powerbi/api), scope (openid), grant_type (password)

 

However, I'm getting the error:

 

"The user or administrator has not consented to use the application with ID 'xxxxxxxx' named 'AAAAA'. Send an interactive authorization request for this user and resource"

 

So, I wonder if this is the right way of getting access token for User Owns Data embedding in the scenario I described.

For example, only the user under my organization will be able to authenticate and embed reports or will it work for any kind of user who enters username/password?

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.