Add Synchronization.Read.All scope for provisioning test (21886)#1319
Open
alflokken wants to merge 5 commits into
Open
Add Synchronization.Read.All scope for provisioning test (21886)#1319alflokken wants to merge 5 commits into
alflokken wants to merge 5 commits into
Conversation
…o-content Refreshed demo content
Rolling up changes for next release
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds the Microsoft Graph permission scope Synchronization.Read.All to the PowerShell scope helper and documents it in the PowerShell readme.
Changes:
- Added
Synchronization.Read.Allto the returned scope list inGet-ZtGraphScope.ps1 - Updated documentation to include
Synchronization.Read.Allin the displayed scope list
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/powershell/public/Get-ZtGraphScope.ps1 | Includes Synchronization.Read.All in the computed set of Graph scopes. |
| src/powershell/doc/readme.md | Documents the newly included Synchronization.Read.All permission. |
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
Test 21886 ("Applications are configured for automatic user provisioning") queries the following synchronization endpoints for each SSO-enabled service principal:
These endpoints require the
Synchronization.Read.AllGraph scope, which was missing from the assessment's requested permissions. As a result, the test returns 401 Unauthorized under the default consent set and cannot run successfully out of the box.Fix
Synchronization.Read.AlltoGet-ZtGraphScope.ps1.src/powershell/doc/readme.md.Impact
Testing
Synchronization.Read.All.