The user you are running with must have at least the User administrator role, and you must connect to the Graph SDK via at least User.ReadWrite.All permissions.
Connect-MgGraph -Scopes User.ReadWrite.All
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
I am trying to assign a license to a user using the powershell command Set-MgUserLicense but I keep getting the below error insufficient privileges , Does anyone know what permission is needed in azure for this ?
Set-MgUserLicense : Insufficient privileges to complete the operation.
Status: 403 (Forbidden)
ErrorCode: Authorization_RequestDenied
The user you are running with must have at least the User administrator role, and you must connect to the Graph SDK via at least User.ReadWrite.All permissions.
Connect-MgGraph -Scopes User.ReadWrite.All