Skip to content

How to find required API permissions for a command? #6400

Answered by milanholemans
daviewales asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, we know that finding out permissions is a real pain right now. That's why we are investing a lot of time to show the permissions needed to run each command.
For now, there are two possible ways to unblock you.

  1. You can run m365 setup. This command is able to set up a new app registration with all the permissions needed to run all commands from CLI. It will basically set up your own PnP Management Shell app registration.
  2. If you want to add permissions manually, currently the only way to find out which permissions are needed is just by checking which requests are being made. But this is sometimes not that obvious to do (like for Power Automate commands). In this case, you can always rea…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@daviewales
Comment options

@milanholemans
Comment options

@milanholemans
Comment options

@daviewales
Comment options

@daviewales
Comment options

Answer selected by daviewales
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants