Skip to content

New command: add Azure AD app registration role #2145

@waldekmastykarz

Description

@waldekmastykarz

Raised from #2077

Usage

aad app role add [options]

Description

Adds roles to the specified Azure AD app registration

Options

Option Description
--appId [appId] ID of the Azure AD app registration for which to retrieve roles. Specify appId or appName but not both
--appName [appName] Name of the Azure AD app registration for which to retrieve roles. Specify appId or appName but not both
-n, --name <name> Name of the role to add
-d, --description <description> Description of the role to add
-m, --allowedMembers <allowedMembers> Allowed members of the role. Allowed values usersGroups,applications,both
-c, --claim <claim> Value which will be included in the "roles" claim of a token identifying a user or app which has been granted this app role

Additional Information

When appName was specified and multiple apps with the same name were found, command will fail prompting for disambiguation showing the IDs of the matching apps.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions