Does service principle work for MFA account ?

Gongya Yu 170 Reputation points
2024-07-03T03:24:56.09+00:00

I have MFA account to Azure. Can I use service principle to access Azure via python SDK ?

thanks !!

Microsoft Entra
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Akhilesh 6,985 Reputation points Microsoft Vendor
    2024-07-03T14:48:21.87+00:00

    Hi @Gongya Yu

    Thank you for reaching us!

    To answer your question, in Microsoft Entra id MFA is for user principals(users), NOT service principals

    In your case if the python SDK depends on token grant flow types used. If the flow needs the user authentication you need to authenticate with user.
    In instance MFA for client_credentials, On-Behalf-Of flow, in Entra ID is not possible currently

    Hope this helps. Do let us know if you any further queries.

    Thanks.

    Akhilesh.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.