Originating from #3894 (comment)
We could and maybe should add extra checks since some commands don't work with application permissions.
Right now we are already doing this for planner commands.
|
if (accessToken.isAppOnlyAccessToken(auth.service.accessTokens[this.resource].accessToken)) { |
|
this.handleError('This command does not support application permissions.'); |
|
return; |
|
} |
Should we maybe create a central function that checks this rather than copy-pasting these lines of code over and over again?
Commands to update
Let's check for other commands where this could be useful as well.
Originating from #3894 (comment)
We could and maybe should add extra checks since some commands don't work with application permissions.
Right now we are already doing this for
plannercommands.cli-microsoft365/src/m365/planner/commands/bucket/bucket-add.ts
Lines 108 to 111 in 1cd4e45
Should we maybe create a central function that checks this rather than copy-pasting these lines of code over and over again?
Commands to update
Let's check for other commands where this could be useful as well.