Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I am following the example at: https://github.com/Microsoft/PowerBI-Developer-Samples/tree/master/App%20Owns%20Data
Edit: specifically /App Owns Data/PowerBIEmbedded_AppOwnsData/Controllers/EmbedReport
var authenticationResult = await authenticationContext.AcquireTokenAsync(resourceUrl, clientId, credential);
After plugging in user credentials and ClientId I am getting the following error response to the access token request:
I'm using the application id from Azure Portal -> App Registrations as the ClientId. I've set appropriate app permissions (https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-embedding-content/#appreg) and the user credentials work fine and have permission.
It seems all of this stuff is in heavy flux. Please help get these dev examples working.
Solved! Go to Solution.
The APP Owns Data demo requires a Native app, please ensure that you're not using a Web App.
How did you get this solved?
Im running the example code locally - it starts as a web app. I get the same error.
The APP Owns Data demo requires a Native app, please ensure that you're not using a Web App.
What is a "native" app? When I login to Azure Portal, I don't see "native" app, I only see Web App or Mobile App.
"The demo requires a native app" is something thats sort of hard to find in any of the documentation. I got this to work by using dev.powerbi.com/apps and http://radacad.com/integrate-power-bi-into-your-application-part-1-register-your-app
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
3 |