Skip to content

New command: update Azure AD app registration role #2159

@waldekmastykarz

Description

@waldekmastykarz

Raised from #2077

Usage

aad app role set [options]

Description

Updates the specified Azure AD app registration role

Options

Option Description
--appId [appId] ID of the Azure AD app registration for which to update the role. Specify appId, appObjectId or appName
--appName [appName] Name of the Azure AD app registration for which to update the role. Specify appId, appObjectId or appName
--appObjectId [appObjectId] Object ID of the Azure AD app registration for which to update the role. Specify appId, appObjectId or appName
-n, --name [name] Name of the role to remove. Specify name, id or claim
-i, --id [id] ID of the role to remove. Specify name, id or claim
-c, --claim [claim] Claim value of the role to remove. Specify name, id, or claim
--newName [newName] New name for the role
--newDescription [newDescription] New description for the role
--newClaim [newClaim] New claim for the role
--enabled [enabled] Set to true to enable the role and to false to disable it

Additional Information

If the appName option was specified, and multiple Azure AD app registrations with the specified name were found, updating the role will fail and CLI will prompt for specifying the app using its ID, showing the discovered IDs.

If the name option was specified, and multiple roles with the specified name were found, updating the role will fail and CLI will prompt for specifying the role using its claim, showing the discovered claims.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions