Skip to content

New command: spo roledefinition get #3270

@Adam-it

Description

@Adam-it

Usage

m365 spo roledefinition get [options]

Description

Should get specified roledefinition from web by id

Options

Option Description
-u, --webUrl <webUrl> URL of the site from which role should be retreived
-i, --id <id> Role 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 get command to get a role definition by id.
We may use this GET request for this
/_api/Web/RoleDefinitions(${roleId})

an example response we should expect is

{
  "BasePermissions": {
    "High": "2147483647",
    "Low": "4294967295"
  },
  "Description": "Has full control.",
  "Hidden": false,
  "Id": 1073741829,
  "Name": "Full Control",
  "Order": 1,
  "RoleTypeKind": 5
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions