drush role-listfor drush 7x


Display a list of all roles defined on the system. If a role name is provided as an argument, then all of the permissions of that role will be listed. If a permission name is provided as an option, then all of the roles that have been granted that permission will be listed.

drush role-list

  • Aliases


    role-list has 1 alias/es:


    drush rls

  • Arguments


    role-list accepts 1 argument/s:


    role : The role to list.  Optional; if specified, lists all permissions assigned to that role.  If no role is specified, lists all of the roles available on the system.

  • Options


    role-list accepts 17 option/s:


    --filter : Limits the list of roles to only those that have been assigned the specified permission. Optional; may not be specified if a role argument is provided.

    --format

    --format : format

    --fields

    --fields : fields

    --list-separator

    --list-separator : list-separator

    --line-separator

    --line-separator : line-separator

    --field-labels

    --field-labels : field-labels

    --format=json

    --format=json : format=json

    --format=config

    --format=config : format=config

    --format=csv

    --format=csv : format=csv

    --format=labeled-export

    --format=labeled-export : format=labeled-export

    --format=list

    --format=list : format=list

    --format=php

    --format=php : format=php

    --format=print-r

    --format=print-r : format=print-r

    --format=table

    --format=table : format=table

    --format=var_export

    --format=var_export : format=var_export

    --format=variables

    --format=variables : format=variables

    --format=yaml

    --format=yaml : format=yaml

  • Examples


    Display a list of roles that have the administer nodes permission assigned.

    drush role-list --filter='administer nodes'

    Display all of the permissions assigned to the anon user role.

    drush role-list 'anonymous user'

  • Comments


    comments powered by Disqus