pnp/cli-microsoft365

[Bug] Without the required scope errors returned from 'tenant people profilecardproperty' commands are vague

開放

#5,629 建立於 2023年11月3日

 (14 則留言) (0 個反應) (0 位負責人)TypeScript (399 個分叉)auto 404
bughelp wanted

倉庫指標

星標
 (1,390 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

I don't have the required scope added yet to my app reg but the error returned is a bit vague:

image

That's probably because the error object coming in from the Graph has an empty message. :( image 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

貢獻者指南