Help with Flow Designer: Automating Microsoft Entra ID (Azure) MFA Reset via Graph API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
- Custom Action: Uses a REST step to GET v1.0/users/{userEmail}/authentication/methods.
- Script Step: Parses the JSON response into an Array.String of IDs.
- Flow Logic: Uses a For Each loop to iterate through the IDs.
- Delete Step: A second REST call to DELETE v1.0/users/{userEmail}/authentication/methods/{methodId}.
The Issue:
I am consistently receiving a 403 Forbidden (accessDenied) error during the test run, even after refreshing the OAuth token.
Is there anyone who has work on the same requirement , Any advice on the flow logic or the Azure permission side would be greatly appreciated!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @SS1510
A 403 Forbidden (accessDenied) error encountered while deleting Entra ID MFA methods is usually caused by insufficient Microsoft Graph API permissions .
Check with Azure team for the required permission. I do not think Azure team will allow to delete the method from their end as it is kind of highest privilege. Still please check with them.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti