Hi @Ishan Parekh,
Thank you for posting in this community.
First, don't know if you've turned on MFA for your tenant. It appears that Microsoft are currently running a campaign that switches on "security defaults" automatically. This is to force all users to setup MFA as this is far more secure.
You can turn off MFA for users who publish your app:
A user with Global Administrator permissions needs to do the following:
- Visit https://entra.microsoft.com/
- Click Identity > Overview > Properties
- Under the 'Security Defaults' heading, click 'Manage security defaults'.
- Change from 'Enabled' to 'Disabled'. This step disables MFA for all users.
- Now in the navigation pane, click Users > All Users > Click on the other user who need MFA
- Click 'Authentication methods', enter a phone number to use with MFA.
After that see if the error still appears.
Second, If the above doesn't work, please enable MFA again in ‘Manage security defaults’. There is another reason that may be contributing to this problem.
The AADSTS50079 error indicates that multi-factor authentication (MFA) is required but not satisfied. This can occur if MFA is enabled for SharePoint but not for the Dataverse, or if there are other configuration issues. To resolve this, you should ensure that MFA is properly configured for both SharePoint and Dataverse.
You can take steps in this article to configure it: SharePoint Document Grid warning AADSTS50076 or AADSTS50079.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.