drush role-add-permfor drush 8x

Grant specified permission(s) to a role.

drush role-add-perm

  • Aliases

    role-add-perm has 1 alias/es:

    drush rap

  • Arguments

    role-add-perm accepts 2 argument/s:

    role : The role to modify.  Required.

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

  • Options

    role-add-perm accepts 1 option/s:

    --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

  • Comments

    comments powered by Disqus