Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RoleEligibilitySchedule.Read.Directory missing when RoleEligibilitySchedule.ReadWrite.Directory is set #638

Open
tbalthazar opened this issue Jan 23, 2025 · 0 comments

Comments

@tbalthazar
Copy link
Contributor

Context

I'm using Maester with Azure DevOps, as documented here.
The Service Principal has RoleEligibilitySchedule.ReadWrite.Directory but doesn't explicitly have RoleEligibilitySchedule.Read.Directory.
My understanding is that the ReadWrite permission is a superset of the Read permission.

What happens

The pipeline execution fails with this error:

Exception: /home/vsts/.local/share/powershell/Modules/Maester/1.0.0/internal/Test-MtContext.ps1:44
Line |
  44 |          throw $message
     |          ~~~~~~~~~~~~~~
     | These Graph permissions are missing in the current connection =>
     | (RoleEligibilitySchedule.Read.Directory). Add the missing 'Application'
     | permissions in the Microsoft Entra portal and grant consent. You will
     | also need to Disconnect-Graph to refresh the permissions. Click here to
     | open the 'API Permissions' blade for this app (GitHub/Azure DevOps might
     | prevent this link from working):
     | https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/CallAnAPI/appId/***/isMSAApp~/false

What I think should happen

It shouldn't fail since RoleEligibilitySchedule.Read.Directory is contained in RoleEligibilitySchedule.ReadWrite.Directory.

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

No branches or pull requests

1 participant