Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
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?
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |