Skip to content

aad approleassignment list

Lists app role assignments for the specified application registration

Usage

aad approleassignment list [options]

Options

Option Description
--help output usage information
-i, --appId [appId] Application (client) Id of the App Registration for which the configured app roles should be retrieved
-n, --displayName [displayName] Display name of the application for which the configured app roles should be retrieved
--objectId [objectId] ObjectId of the application for which the configured app roles should be retrieved
--query [query] JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output] Output type. json,text. Default text
--pretty Prettifies json output
--verbose Runs command with verbose logging
--debug Runs command with debug logging

Remarks

Specify either the appId, objectId or displayName. If you specify more than one option value, the command will fail with an error.

Examples

List app roles assigned to service principal with Application (client) ID b2307a39-e878-458b-bc90-03bc578531d6.

aad approleassignment list --appId b2307a39-e878-458b-bc90-03bc578531d6

List app roles assigned to service principal with Application display name MyAppName.

aad approleassignment list --displayName 'MyAppName'

List app roles assigned to service principal with ObjectId b2307a39-e878-458b-bc90-03bc578531dd.

aad approleassignment list --objectId b2307a39-e878-458b-bc90-03bc578531dd

More information