Skip to content

New command: list API permissions for the current AAD app #2841

@waldekmastykarz

Description

@waldekmastykarz

Usage

m365 app permission list [options]

Description

Lists API permissions for the current AAD app

Options

Option Description
-i, --appId [appId] The app (client) ID of the Azure AD for which to list API permissions. Specify, if you have multiple Azure AD apps listed in the .m365rc.json file

Additional Info

This command get the ID of the Azure AD registration for which to list API permissions from the .m365rc.json file in the current directory. If the file is missing, is empty or its contents are malformed, the command will show an error. If there are multiple Azure AD apps in the file, the command will prompt the user to disambiguate. This is done interactively using inquirer. The command shows in one list application and delegated permissions as configured in the specified AAD app.

Since we'll be adding more app commands in the future, file handling and app disambiguation should be centralized so that it doesn't need to be reimplemented in each command.

Related to #2832

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions