A cloud-based identity and access management service for securing user authentication and resource access
Hello Rozerin Akkus
No, Phase 2 MFA enforcement has no effect on OAuth2 renew token flows used for SharePoint CSOM/REST or the Microsoft Graph API.
According to the documentation, requests made to Azure Resource Manager (https://management.azure.com/) are primarily subject to required MFA enforcement. In general, this enforcement does not apply to Microsoft Graph APIs.
Therefore:
- Refresh tokens that already exist won't be invalidated just because they weren't obtained using MFA. -
- Until their normal expiration or revocation events (password reset, admin revocation, Conditional Access modifications, etc.), refresh tokens will remain functional.
- Integrations that use the Graph or SharePoint APIs for read operations should keep working as usual.
Microsoft recommends adopting service principals or managed identities instead of user accounts for automation as a long-term best practice.
If the assistance was helpful, kindly take a moment to click on
and click on Yes for was this answer helpful. And, if you have any further query do let us know.