Skip to content

New command: spo roledefinition remove #3272

@Adam-it

Description

@Adam-it

Usage

m365 spo roledefinition remove [options]

Description

Should remove roledefinition from web

Options

Option Description
-u, --webUrl <webUrl> URL of the site from which role should be retrieved
-i, --id <id> Role definition id

Additional Info

I was thinking that now since we added first command to list the role definitions from web we need other as well (get, add and delete) 🤔.
In this issue I would like to consider adding a delete command to remove a role definition by id.
We may use this DELETE request for this
/_api/Web/RoleDefinitions(${roleIDefinitiond})

the expected result should be deleted role

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions