Microsoft Graph API throwing error Related to MFA

Rohit Mallya 0 Reputation points
2024-11-13T12:36:03.18+00:00

I am getting the below error when trying to get refresh token using Microsoft Graph API:

AADSTS50076: 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

API --> https://login.microsoftonline.com/<tenantId>/oauth2/v2.0/token (POST METHOD)

(We are using a paid version of container for Microsoft Embedded SharePoint with active azure subscription.)

This API was working earlier not all of a sudden it stopped working. I am not sure if MFA is enabled or any other settings change somewhere by mistake. Can someone enlighten me on what steps I can do to debug this issue. ( PS: I did see similar issues in the community, but the solutions that are provided doesnt match with my scenario, they were mentioning something related to MFA being enabled but when I checked it was disabled in my case)

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,377 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 6,965 Reputation points Microsoft Vendor
    2024-11-14T02:21:41.9266667+00:00

    Hello Rohit Mallya,

    Thank you for reaching out to Microsoft Support!

    After attempting to cancel the user's MSF session, wait about 30 minutes and try again.

    Reference case:

    https://learn.microsoft.com/en-us/answers/questions/1337701/aadsts50076-due-to-a-configuration-change-made-by

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.