Power BI Embed Token – Getting 401 Unauthorized with EmbeddedPowerBI Module
0
Hi all, I’m using the EmbeddedPowerBI module from the Mendix Marketplace to connect my Mendix app with Power BI. I've configured everything — tenant ID, client ID, and client secret from my Azure App Registration — and I’m able to successfully retrieve the access token. However, when I try to generate the embed token, I receive a 401 Unauthorized error. I suspect this could be due to missing API permissions in my Azure App Registration. I noticed that: Report.Read.All and Dataset.Read.All are only available under Delegated permissions. But I need them as Application permissions (since I’m not logging in with an Azure AD user in Mendix — just using a local Mendix user). In Application permissions, I only see options like Tenant.Read.All. Is there a way to enable Report.Read.All and Dataset.Read.All under Application permissions? Or am I missing a step? Also, I’m currently using a Power BI trial account — could that be a limitation? Any guidance would be appreciated! Thanks in advance!
asked
Rishi Sundar
1 answers
0
Hi Rishi,
Though the permissions are delegated. those permissions should be marked as Granted with a Green tick in your Azure console, API permissions screen.
IF those are not granted, ask your Azure Admin to grant those API permissions for your app. then you could resolve it.