pnp/cli-microsoft365
View on GitHub[Bug] Without the required scope errors returned from 'tenant people profilecardproperty' commands are vague
Open
#5,629 opened on Nov 3, 2023
bughelp wanted
Repository metrics
- Stars
- (1,390 stars)
- PR merge metrics
- (PR metrics pending)
Description
I don't have the required scope added yet to my app reg but the error returned is a bit vague:
That's probably because the error object coming in from the Graph has an empty message. :(
not sure how to solve this here... The MS Graph team should make this more descriptive, or we should implement checks based on the HTTP status code.. But that seems a change that would impact a lot of other code.
Originally posted by @martinlingstuyl in https://github.com/pnp/cli-microsoft365/issues/5624#issuecomment-1791486402