Skip to content

Application permission check on certain commands #4054

@milanholemans

Description

@milanholemans

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

  • All flow commands
  • All Power Apps commands
  • All Power Platform commands
  • All Yammer commands
  • teams chat send
  • ...

Let's check for other commands where this could be useful as well.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions