drush role-add-permfor drush 6x

Grant a specified permission 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.

    permission : The permission to grant. 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 anonymous users to put their own advertisements on your site.

    drush role-add-perm 'anonymous user' 'post comments'

    Select a permission from "node" permissions to add to authenticated users.

    drush role-add-perm 'authenticated user' --module=node

  • Comments

    comments powered by Disqus