Add missing EntitlementManagement.Read.All to default Graph scopes#1795
Open
Copilot wants to merge 3 commits into
Open
Add missing EntitlementManagement.Read.All to default Graph scopes#1795Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
2 tasks
Up to standards ✅🟢 Issues
|
Agent-Logs-Url: https://github.com/maester365/maester/sessions/85f3c455-e40c-400c-b96f-9d2bde2d8696 Co-authored-by: SamErde <20478745+SamErde@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix Get-MtGraphScope missing EntitlementManagement.Read.All
Add missing EntitlementManagement.Read.All to default Graph scopes
May 22, 2026
Deploying maester with
|
| Latest commit: |
ba6429d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a873d9a5.maester.pages.dev |
| Branch Preview URL: | https://copilot-fix-mtgraphscope-mis.maester.pages.dev |
SamErde
approved these changes
May 22, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes missing Microsoft Graph permissions for Maester’s entitlement-management tests by adding the EntitlementManagement.Read.All scope to the default Get-MtGraphScope read-only scope set, and introduces a small Pester test suite to prevent regressions.
Changes:
- Added
EntitlementManagement.Read.Allto the default scope array returned byGet-MtGraphScope. - Added Pester unit tests ensuring the scope is present and remains alphabetically ordered relative to nearby scopes.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| powershell/public/Get-MtGraphScope.ps1 | Adds the missing default Graph scope used by entitlement-management tests. |
| powershell/tests/functions/Get-MtGraphScope.Tests.ps1 | Adds regression tests for presence and ordering of the new scope. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
SamErde
approved these changes
May 22, 2026
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.
📑 Description
Connect-Maesterwas not requestingEntitlementManagement.Read.AllviaGet-MtGraphScope, causing MT.1106–MT.1110 entitlement-management tests to fail withForbiddenon properly licensed Entra ID P2 tenants. This PR adds the missing scope and locks the behavior with focused unit tests.Scope list update
EntitlementManagement.Read.Allto the default read-only scope set inpowershell/public/Get-MtGraphScope.ps1.Regression coverage
powershell/tests/functions/Get-MtGraphScope.Tests.ps1to verify:EntitlementManagement.Read.All✅ Checks
/powershell/tests/pester.ps1locally.ℹ️ Additional Information
No breaking changes.
This is a minimal permissions fix for existing entitlement-management checks (MT.1106–MT.1110).
How to Contribute
🏗️ Read our full contributing guide for the Maester project.
🧪 We also have additional instructions and a checklist for creating tests.
Join us at the Maester repository discussions or Entra Discord for more help and conversations!
While you wait for a review, why not spread some Maester love on social media? Thank you! 💖
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
management.azure.com/usr/bin/pwsh pwsh -NoLogo -NoProfile -File ./powershell/tests/pester.ps1(dns block)us.i.posthog.com/usr/bin/pwsh pwsh -NoLogo -NoProfile -File ./powershell/tests/pester.ps1(dns block)www.powershellgallery.com/usr/bin/pwsh pwsh -NoLogo -NoProfile -File ./powershell/tests/pester.ps1(dns block)If you need me to access, download, or install something from one of these locations, you can either: