How to find required API permissions for a command? #6400
-
I have been able to log in using a dedicated Entra app registration. For example, I'm wanting to run the Power Automate commands in the I'm getting the following error:
However, we've added the permissions as best we can work out: I'm aware of the related issues and PR:
But I'm wondering if there is a way I can figure out the required permissions myself in the meantime? I've even peeked at the code, but am none the wiser: How can I determine the required API permissions for the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
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.
|
Beta Was this translation helpful? Give feedback.
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.
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.