Edit on GitHub
Jump to docs navigation

Console command / User Roles / role:add

Note: You are currently reading the documentation for Bolt 4.0. Looking for the documentation for Bolt 3.7 instead?

Nut's role:add command adds a given role to a user's Bolt account.


    php ./bin/console role:add <username> <role>


Argument Description
username The username (login name) you wish to add a role to
role The role you wish to give them


Giving user 'chief-editor' role

$ php ./bin/console role:add kenny chief-editor

User 'kenny' now has role 'chief-editor'.

Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.