-
Notifications
You must be signed in to change notification settings - Fork 211
Description
Describe the bug
Trying to use Get-MgSubscribedSku
through an unattended application, I wanted to add the LicenseAssignment.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 consent
How to reproduce
- Create an app registration on the Azure Portal
- Try to add the
LicenseAssignment.Read.All
scope on the Microsoft Graph API - The scope isn't shown.
SDK 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