Forum Discussion
Problem connecting to the api user when I enable multi-factor binding with Microsoft.
Good we have a powerbi user to access through an api, when we have activated the multi-factor authentication we get an error when launching a curl check:
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
How to solve it ? From the active directory I can disable it but I suppose that in 14 days it will ask me again.
Is there any way to tell the api not to use multi-factor?
Thank you, colleagues.
3 Replies
- GilbertQSuper User
Hi Anonymous
As far as I am aware there is no way to get around the multi-factor authentication, this is put in place to help secure logging in.
The only alternative is to get a service account that does not use multi-factor and also where the password does not change.
- AnonymousNot applicable
I guess it will be :
https://learn.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portalBut how do I associate my new user to my Power BI Embedded license? I suppose that later in the api I will have to provide the Application (client) ID and the secret id to log in?
Sorry for the lack of knowledge, thank you for your help. Best regards.
- GilbertQSuper User
Yeah that is how I do it for customers.