drush user-add-rolefor drush 7x


Add a role to the specified user accounts.

drush user-add-role

  • Aliases


    user-add-role has 1 alias/es:


    drush urol

  • Arguments


    user-add-role accepts 2 argument/s:


    role : The name of the role to add

    users : (optional) A comma delimited list of uids, user names, or email addresses.

  • Options


    user-add-role accepts 3 option/s:


    --uid

    --uid : uid

    --name

    --name : name

    --mail

    --mail : mail

  • Examples


    Add the "power user" role to the accounts with name, id, or email 5 or user3, uids 2 and 3, names someguy and somegal, and email address of [email protected]

    drush user-add-role "power user" 5,user3 --uid=2,3 --name=someguy,somegal [email protected]

  • Comments


    comments powered by Disqus