Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command: entra roledefinition set #6467

Open
MartinM85 opened this issue Nov 4, 2024 · 0 comments
Open

New command: entra roledefinition set #6467

MartinM85 opened this issue Nov 4, 2024 · 0 comments
Labels
feature request needs peer review Needs second pair of eyes to review the spec or PR

Comments

@MartinM85
Copy link
Contributor

Usage

m365 entra roledefinition set

Description

Updates a custom Microsoft Entra ID role definition

Options

Option Description
-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.
--description [description] Updated description for the role definition.
-e, --enabled [enabled] Indicates if the role is enabled for the assignment.
--allowedResourceActions [allowedResourceActions] Updated comma-separated list of resource actions allowed for the role.
--version [version] Updated version of the role definition.

Examples

Update a custom Microsoft Entra ID role specified by the id

m365 entra roledefinition add --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 add --displayName 'Application Remover' --version '1.0' --enabled true --allowedResourceActions 'microsoft.directory/applications/delete,microsoft.directory/applications/owners/update'

Default properties

No response

Additional Info

The command requires the permission RoleManagement.ReadWrite.Directory.

More info: https://learn.microsoft.com/en-us/graph/api/unifiedroledefinition-update?view=graph-rest-1.0&tabs=http

I will work on it

@Adam-it Adam-it added needs peer review Needs second pair of eyes to review the spec or PR feature request labels Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request needs peer review Needs second pair of eyes to review the spec or PR
Projects
None yet
Development

No branches or pull requests

2 participants