Skip to content

Fix permission scope for authenticationMethodConfigurations endpoints#114

Open
rgunst wants to merge 1 commit intomicrosoft:mainfrom
rgunst:fix/auth-method-config-permissions
Open

Fix permission scope for authenticationMethodConfigurations endpoints#114
rgunst wants to merge 1 commit intomicrosoft:mainfrom
rgunst:fix/auth-method-config-permissions

Conversation

@rgunst
Copy link

@rgunst rgunst commented Mar 11, 2026

Summary

  • The 8 authenticationMethodConfigurations endpoints in Get-EEDefaultSchema.ps1 declared Policy.Read.All as the required permission scope
  • The Microsoft Graph API actually requires Policy.Read.AuthenticationMethod for these endpoints (docs)
  • Policy.Read.All and Policy.Read.AuthenticationMethod are separate scopes — Policy.Read.All does not cover authentication method policies
  • This causes Connect-EntraExporter to not request the correct scope, resulting in 403 errors on all authentication method configuration exports (email, fido2, microsoftAuthenticator, sms, temporaryAccessPass, softwareOath, voice, x509Certificate)

Changes

Changed DelegatedPermission and ApplicationPermission from Policy.Read.All to Policy.Read.AuthenticationMethod for all 8 authenticationMethodConfigurations entries in src/Get-EEDefaultSchema.ps1.

Test plan

  • Verified Get-EERequiredScopes now includes Policy.Read.AuthenticationMethod in the computed scopes
  • Ran Export-Entra -All against a production tenant — all 8 authentication method configuration endpoints exported successfully with zero 403 errors

The 8 authenticationMethodConfigurations endpoints (email, fido2,
microsoftAuthenticator, sms, temporaryAccessPass, softwareOath, voice,
x509Certificate) declared Policy.Read.All as the required permission.

However, the Microsoft Graph API requires Policy.Read.AuthenticationMethod
for these endpoints. Policy.Read.All does not cover authentication method
policies, resulting in 403 errors when the correct scope has not been
separately consented.

Changed DelegatedPermission and ApplicationPermission from
Policy.Read.All to Policy.Read.AuthenticationMethod for all 8 endpoints.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rgunst
Copy link
Author

rgunst commented Mar 11, 2026

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants