Skip to main content

entra roledefinition set

Updates a custom Microsoft Entra ID role definition

Usage

m365 entra roledefinition set [options]

Options

-i, --id [id]

The id of the role definition to be updated. Specify either id or displayName, but not both.

-n, --displayName [displayName]

The display name of the role definition to be updated. Specify either id or displayName, but not both.

--newDisplayName [newDisplayName]

Updated display name for the role definition.

-d, --description [description]

Updated description for the role definition.

-e, --enabled [enabled]

Indicates if the role is enabled for the assignment.

a-, --allowedResourceActions [allowedResourceActions]

Updated comma-separated list of resource actions allowed for the role.

-v, --version [version]

Updated version of the role definition.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Examples

Update a custom Microsoft Entra ID role specified by the id

m365 entra roledefinition set --id fadbc488-151d-4431-9143-6abbffae759f --newDisplayName 'Application Remover' --description 'Allows to remove any Entra ID application' --allowedResourceActions 'microsoft.directory/applications/delete'

Update a custom Microsoft Entra ID role specified by the display name

m365 entra roledefinition set --displayName 'Application Remover' --version '1.0' --enabled true --allowedResourceActions 'microsoft.directory/applications/delete,microsoft.directory/applications/owners/update'

Response

The command won't return a response on success

More information

CTRL + M