Search the docsCtrl K
Menu
Docs / Command line Updated Edit on GitHub

neodesk roles

Copy as Markdown

Roles and their permissions.

neodesk roles --help lists the same commands in the terminal. The flags every command takes are in the command reference.

neodesk roles list

List the roles with their levels. roles permissions <role> shows what a role may do.

neodesk roles list [flags]

Needs user.view; only reads. Calls GET /api/panel/roles.

neodesk roles override-delete

Undo a change to a role: back to its built-in permission.

neodesk roles override-delete <role> <permission> [flags]
Argument What it is
<role> The role
<permission> The permission

Needs the super_admin role, and a token with all of its account's permissions; changes something: needs a token with read and write access; deletes or ends something for good, so it asks first unless --yes is given. Calls DELETE /api/panel/role-permissions/{role}/{permission}.

neodesk roles override-set

Give a role a permission or take one away (super admins).

neodesk roles override-set --role ROLE --permission PERMISSION --granted  [flags]
Flag What it is
--role ROLE the role (required)
--permission PERMISSION the permission, like device.edit (required)
--granted true gives it, false takes it away (required)

Needs the super_admin role, and a token with all of its account's permissions; changes something: needs a token with read and write access. Calls POST /api/panel/role-permissions.

neodesk roles override-set --role operator --permission device.delete --granted false

neodesk roles overrides

List the permissions changed from the built-in roles.

neodesk roles overrides [flags]

Needs server.config; only reads. Calls GET /api/panel/role-permissions.

neodesk roles permissions

Show the permissions a role has now, overrides included.

neodesk roles permissions <role> [flags]
Argument What it is
<role> The role, like operator

Needs user.view; only reads. Calls GET /api/panel/roles/{role}/permissions.

neodesk roles permissions operator

Type to search pages, sections, commands and settings.