drush role-add-perm

Grant specified permission(s) to a role.

Drush Command

drush role-add-perm

Arguments

role : The role to modify.  Required.
permissions : The list of permission to grant, delimited by commas. Required, unless the --module option is used.

Aliases

drush rap

Options

--module : Select the permission to modify from an interactive list of all permissions available in the specified module.

Examples

Allow anon users to post comments.

drush role-add-perm 'anonymous user' 'post comments'
Allow anon users to post comments and access content.
drush role-add-perm 'anonymous user' "'post comments','access content'"
Select a permission from "node" permissions to add to logged in users.
drush role-add-perm 'authenticated user' --module=node