-
Notifications
You must be signed in to change notification settings - Fork 15
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
Not Requesting DeviceManagementApps.ReadWrite.All In Graph API #19
Comments
Hi Joshua, I did a test using Connect-MgGraph, but IntuneWin32App does not accept this connecting. Changes I attempted in WinGet-WrapperImportFromCSV.ps1
|
Usually when you make the permission request for the first time, the pop-up lets you auth it for the organisation; but this doesn't seem to be the case. Is it the Microsoft Graph Powershell enterprise app it needs? I really feel like MS makes this as hard as possible. Keen to help out with this as this wrapper is an absolute godsend - so thank you for your work on it! |
It seems if you do not have graph already setup in the tenant, the Graph call does not request DeviceManagementApps.ReadWrite.All in the app request.
running
$RequiredScopes = ("Organization.ReadWrite.All”, "Directory.Read.All", "DeviceManagementApps.ReadWrite.All")
Connect-MgGraph -Scope $RequiredScopes
Fixes this by requesting the needed permissions
The text was updated successfully, but these errors were encountered: