YannickRe / spfx-msgraph-peoplesearch

Show and search users from your organization with an SPFx web part, through Microsoft Graph.
40 stars 33 forks source link

Syntax error #4

Closed guptar1 closed 3 years ago

guptar1 commented 3 years ago

I keep getting this error after installing m365 CLI

Capture

YannickRe commented 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

guptar1 commented 3 years ago

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?

YannickRe commented 3 years ago

@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!

YannickRe commented 3 years ago

@guptar1 Has this been resolved for you? Can I close the issue?

guptar1 commented 3 years ago

Yes please close. Thanks for your help