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 remove #6468

Closed
MartinM85 opened this issue Nov 4, 2024 · 2 comments
Closed

New command: entra roledefinition remove #6468

MartinM85 opened this issue Nov 4, 2024 · 2 comments

Comments

@MartinM85
Copy link
Contributor

MartinM85 commented Nov 4, 2024

Usage

m365 entra roledefinition remove

Description

Removes a custom Microsoft Entra role definition

Options

Option Description
-i, --id [id] The id of the role definition to be removed. Specify either id or displayName, but not both.
-n, --displayName [displayName] The display name of the role definition to be removed. Specify either id or displayName, but not both.
-f, --force Don't prompt for confirmation.

Examples

Remove a custom role definition by its id

m365 entra roledefinition remove --id 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7

Remove a custom role definition by its display name without prompting for confirmation

m365 entra roledefinition remove --displayName 'My Custom Role' --force

Default properties

No response

Additional Info

More info: https://learn.microsoft.com/en-us/graph/api/unifiedroledefinition-delete?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
@milanholemans milanholemans added work in progress and removed needs peer review Needs second pair of eyes to review the spec or PR labels Nov 10, 2024
@martinlingstuyl
Copy link
Contributor

Hi @MartinM85: Is it possible using this command to delete a default RoleDefinition, like SharePointAdministrator? I hope not 😅 That would be a bad thing.

@MartinM85
Copy link
Contributor Author

Hi @martinlingstuyl, you can delete only custom role definition. An attempt to remove any default role, like SharePoint Administrator, will fail.

@martinlingstuyl martinlingstuyl added this to the v10.2 milestone Dec 13, 2024
SmitaNachan pushed a commit to SmitaNachan/cli-microsoft365 that referenced this issue Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants