Closed guptar1 closed 3 years ago
You better leave that as a bug on their repository: https://github.com/pnp/cli-microsoft365/
One thing you could try tho, is to use the complete commands:
m365 login
followed by
m365 spo serviceprincipal grant add --resource 'Microsoft Graph' --scope 'User.Read.All'
The interactive mode is no longer available since they moved from Office 365 CLI to CLI for Microsoft 365
Thanks @YannickRe for your response. Unfortunately no command are working. I keep getting the same error. Is there a way to grant this permission using powershell or manually?
@guptar1 You can do the same by using PnP PowerShell, with Grant-PnPTenantServicePrincipalPermission
In that case, you'd use
Grant-PnPTenantServicePrincipalPermission -Scope "User.Read.All" -Resource "Microsoft Graph"
I hope this helps you be succesful!
@guptar1 Has this been resolved for you? Can I close the issue?
Yes please close. Thanks for your help
I keep getting this error after installing m365 CLI