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 add #6466

Open
MartinM85 opened this issue Nov 4, 2024 · 4 comments · May be fixed by #6521
Open

New command: entra roledefinition add #6466

MartinM85 opened this issue Nov 4, 2024 · 4 comments · May be fixed by #6521

Comments

@MartinM85
Copy link
Contributor

Usage

m365 entra roledefinition add

Description

Creates a custom Microsoft Entra ID role definition

Options

Option Description
-n, --displayName <displayName> The display name for the role definition.
--allowedResourceActions <allowedResourceActions> Comma-separated list of resource actions allowed for the role.
--description [description] The description for the role definition.
--enabled [enabled] Indicates if the role is enabled for the assignment. If not specified, the role is enabled by default.
--version [version] The version of the role definition.

Examples

Create a custom Microsoft Entra ID role

m365 entra roledefinition add --displayName 'Application Remover' --description 'Allows to remove any Entra ID application' --allowedResourceActions 'microsoft.directory/applications/delete'

Create a custom Microsoft Entra ID role, but disable it for the assignment

m365 entra roledefinition add --displayName 'Application Remover' --version '1.0' --enabled false --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-get?view=graph-rest-1.0&tabs=http#for-the-directory-microsoft-entra-id-provider

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
@Adam-it
Copy link
Member

Adam-it commented Nov 27, 2024

All good.
Lets Ship it 🚢

@Adam-it Adam-it added help wanted good first issue and removed needs peer review Needs second pair of eyes to review the spec or PR labels Nov 27, 2024
@Adam-it
Copy link
Member

Adam-it commented Nov 27, 2024

@MartinM85 do you want to take this one?

@MartinM85
Copy link
Contributor Author

@Adam-it I will take it

@Adam-it
Copy link
Member

Adam-it commented Nov 28, 2024

@Adam-it I will take it

You Rock!

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.

2 participants