can't generate token
2 TopicsError: Generate token request for proxy model should include the core model ID
Trying to use RLS with PowerBi embedded analytics, when I tested a POST request to generate token: POST https://api.powerbi.com/v1.0/myorg/GenerateToken I'm receiving following error: { "error": { "code": "InvalidRequest", "message": "Generate token request for proxy model should include the core model ID" } } This happens only in case when sending identities in request body for reports using direct query connection. If it is expecting a "Core model Id" in such scenario, cannot understand what is core model Id and how to pass it in request body as request body doesn't mention anything like model or modelId. For Request body structure, please see: https://learn.microsoft.com/en-us/rest/api/power-bi/embed-token/generate-tokenSolved7.8KViews1like10CommentsUnable to authenticate when MFA is enabled.
I hit the endpoint https://login.microsoftonline.com/common/oauth2/token with username, and password, and it return token to me. Then I used that to show the reports in my webpage. But when I enable the MFA for that user, then it gives me error response: "Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access". What I need to change in my code to run it smoothly. Or There is any other solution for this.Solved1.2KViews0likes1Comment