Skip to content

Grant missing Graph application permissions to the demo-tenant smoke-test identity #2560

Closed

Description

@SamErde

The full demo-tenant smoke test fails because its Microsoft Graph connection is missing required application permissions. @merill, please update the dedicated smoke-test app registration/service principal in your demo tenant and grant tenant-wide admin consent.

Required identity update

  • Add and admin-consent Microsoft Graph Application permission AccessReview.Read.All.
  • Add and admin-consent Microsoft Graph Application permission NetworkAccess.Read.All.

Use the identity configured by MAESTER_SMOKE_CLIENT_ID in the maester-smoke-test GitHub environment (documented as DO NOT DELETE - Maester GitHub Action Smoke Test). Both permissions are included in the current default Get-MtGraphScope output.

Failure evidence

Source run: https://github.com/maester365/maester/actions/runs/40307031293

Windows job: https://github.com/maester365/maester/actions/runs/40307031293/job/121518598250

Windows, Linux, and macOS all authenticate successfully through OIDC and complete the Maester action, then fail Verify Maester executed successfully with:

Maester did not complete normally (unexpected results=2, errors=2).
Unexpected: [CIS.M365.5.3.2=Error, CIS.M365.5.3.3=Error].

The logs explicitly identify missing AccessReview.Read.All and NetworkAccess.Read.All. The two access-review tests receive 403 Forbidden from identityGovernance/accessReviews/definitions; AccessReview.Read.All is the least-privileged application permission for that endpoint: https://learn.microsoft.com/en-us/graph/api/accessreviewset-list-definitions?view=graph-rest-1.0#permissions

NetworkAccess.Read.All is also missing, although it did not cause either of these two errors.

This failure predates PR #2539: the October 25 run has the identical warning and errors: https://github.com/maester365/maester/actions/runs/40232816988/job/121287999911. PR #2413 introduced the access-review checks and added AccessReview.Read.All to the default scopes.

Validation and documentation

  • Rerun the full smoke test after consent so each job obtains a fresh token. Confirm that the missing-permission warning is cleared and both access-review checks complete without authorization errors on all three operating systems.
  • Update .github/workflows/maester-action-smoke-test.md to include both permissions in its application-permission setup list.

Keep the existing verification gate: ordinary security-posture Failed results are allowed, while execution Error results should continue to fail CI.

Activity

  1. added
    status: needs review
    maintenance
    on Oct 26, 2026
  2. added theissue type on Oct 26, 2026
  3. earbona23 commented on Nov 5, 2026

    @earbona23
    Contributor

    There is a third permission missing from the same identity, and it will fail the same way once the two above are consented.

    Comparing the setup list in .github/workflows/maester-action-smoke-test.md set-wise against the actual output of Get-MtGraphScope (27 scopes returned, 24 documented, nothing documented that is not a default):

    in Get-MtGraphScope but not in the list:
      AccessReview.Read.All          <- named in this issue
      DeviceManagementApps.Read.All  <- not named in this issue
      NetworkAccess.Read.All         <- named in this issue
    

    website/docs/sections/permissions.md already lists all three, so only the workflow setup list had drifted. Since Compare-MtGraphScope reports every missing scope at once, DeviceManagementApps.Read.All would show up in the same warning if it is also unconsented on the smoke-test app registration, so it is worth granting in the same pass rather than discovering it on the next run.

    #2686 fixes the documented list and adds a unit test that compares it against Get-MtGraphScope in both directions, so it cannot drift again silently. The test names the missing scopes and the file to edit in its failure message.

    The consent itself still needs @merill, as you say. Nothing in the PR changes the tenant.

  4. SamErde commented on Nov 8, 2026

    @SamErde
    ContributorAuthor

    Additional investigation and current confirmation (2026-11-08):

    @merill, the remaining tenant-side action is to grant/admin-consent all three Graph Application permissions on the smoke-test identity, including DeviceManagementApps.Read.All noted in the previous comment. Then rerun the full workflow for fresh tokens and confirm the warning clears and the access-review checks no longer error. Please retain the existing execution-error gate.

  5. merill commented on Nov 9, 2026

    @merill
    Contributor

    Fixed now. The smoke-test identity has been granted and admin-consented AccessReview.Read.All, NetworkAccess.Read.All and DeviceManagementApps.Read.All.

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

Metadata

Metadata

Assignees

Labels

automationmaintenancestatus: needs review

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions