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
idordisplayName, but not both.-n, --displayName [displayName]The display name of the role definition to be updated. Specify either
idordisplayName, 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,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Remarks
Use the m365 entra rolepermission list --resourceNamespace microsoft.directory command to get a list of available resource actions.
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