-
Notifications
You must be signed in to change notification settings - Fork 174
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
Missing scope LicenseAssignment.Read.All in Azure Portal #3055
Comments
I managed to find the role ID for
I can manually add it in the manifest, then do an admin consent from the enterprise application (the button in the app registration itself break due to the ""unkonwn"" role), and that worked. At least I have a workaround that don't require to give write access to all licence assignments to my app. Microsoft should probably still add the scope to the portal's list so it can be added through normal, supported means. |
Stumbled upon this as we ran the below line towards our Graph app.
We found LicenseAssignment.ReadWrite.All but not just Read? We cannot use write in this per least privilege management.
Replacing ReadWrite with Read returns the error:
|
Hi @Zoddo thank you for logging this issue. Are you the administrator of that tenant? If not, is the administrator able to see the scope? You can also raise the issue here https://developer.microsoft.com/en-us/graph/support so that it can be escalated to the relevant team. |
I contacted MS Support and they told me the documentation at https://learn.microsoft.com/en-us/graph/api/subscribedsku-list?view=graph-rest-1.0&tabs=http is false, and that Read.Write is the only API available at this time. They will update the documentation with this info soon™️ |
Yes, I'm global admin
Thanks, I'll try to get the issue escalated through the support or the Q&A.
This is definitely false, considering that |
They still insist that
But as you say there's a workaround to it so.. it does "exist" somewhere over the rainbow.
@timayabi2020 since this is presented in PowerShell for me does it still not fall under this scope? The specific error in Graph Powershell when assigning the licence read is:
Whereas assigning Read.Write will work as expected. |
TLDR: It shows some places like Graph Explorer and manifests because it's in a testing phase, according to MS third party Support |
Describe the bug
Trying to use
Get-MgSubscribedSku
through an unattended application, I wanted to add theLicenseAssignment.Read.All
scope to my app registration.However, the scope doesn't appear in the Azure Portal (neither as Application or Delegated permissions):
The scope does however exist in the backend, because if I do an interactive login with
Connect-MgGraph -Scope LicenseAssignment.Read.All
, I'm correctly prompted to approve the scope, and it appears in the "User consent" section of the enterprise application (as Delegated, of course).Expected behavior
I can add the
LicenseAssignment.Read.All
scope as an Application's permission in the app registration, and grant an admin consentHow to reproduce
LicenseAssignment.Read.All
scope on the Microsoft Graph APISDK Version
N/A
Latest version known to work for scenario above?
No response
Known Workarounds
I haven't found any workaround. I wanted to manually add the scope in the manifest, but I wasn't able to find the role ID to use.
Debug output
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: