Fix incorrect Microsoft Graph permission GUIDs in Entra app registration script - #1459
Merged
Paul Lizer (paullizer) merged 1 commit intoSep 7, 2026
Conversation
The delegated permission GUIDs in Initialize-EntraApplication.ps1 were shifted by one entry, so the script configured permissions that did not match the names it logged: - "People.Read.All" used b340eb25-... which is actually User.ReadBasic.All - "User.ReadBasic.All" used b4e74841-... which is actually User.ReadWrite As a result People.Read.All was never granted, and User.ReadWrite - a write scope the application never uses - was granted instead. The app only requires User.Read, User.ReadBasic.All, People.Read.All and Group.Read.All (see SCOPE in application/single_app/config.py). All eight GUIDs verified against the Microsoft Graph service principal oauth2PermissionScopes. Bumps deployers/version.txt to 1.0.29.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The delegated Microsoft Graph permission GUIDs in
Initialize-EntraApplication.ps1were shifted by one entry, so the script configured permissions that did not match the names it logged.People.Read.Allb340eb25-...User.ReadBasic.Allb4e74841-...Impact
People.Read.Allwas never requested or granted, despite the script loggingSUCCESS: Added: People.Read.All.User.ReadWritewas granted instead - a write scope the application never uses.SCOPEinapplication/single_app/config.pyrequires onlyUser.Read,User.ReadBasic.All,People.Read.All, andGroup.Read.All.User.ReadWriteappears nowhere underapplication/.Because the script logs the intended names rather than the resolved GUIDs, the mismatch was silent.
Fix
Corrected both GUIDs. All eight entries were then verified against the live Microsoft Graph service principal
oauth2PermissionScopes:Validation
System.Management.Automation.Language.Parser).People.Read.Alladded,User.ReadWriteremoved, admin consent re-granted. Resulting granted scopes now matchconfig.pyexactly.Note for existing deployments
Registrations created by the previous version of this script have
User.ReadWritegranted and are missingPeople.Read.All. They need correcting - the fix here only affects newly created registrations.deployers/version.txtbumped to 1.0.29.