Error When Changing User Role in Drush? I wanted to see if there is a way to change a user role using drush. I found this post explaining how to do it but I get an error. I replaced the actual username with "USERNAME".

drush user-add-role administrator USERNAME


&gt; exception 'Drush\Role\RoleException' with message 'Could not find the
&gt; role:      [error] administrator' in
&gt; /usr/local/src/drush/lib/Drush/Role/RoleBase.php:46 Stack trace:
&gt; #0 [internal function]: Drush\Role\RoleBase-&gt;__construct('administrator')
&gt; #1 /usr/local/src/drush/includes/drush.inc(113): ReflectionClass-&gt;newInstanceArgs(Array)
&gt; #2 /usr/local/src/drush/commands/core/role.drush.inc(273): drush_get_class('Drush\\Role\\Role', Array)
&gt; #3 /usr/local/src/drush/commands/user/user.drush.inc(281): drush_role_get_class('administrator')
&gt; #4 [internal function]: drush_user_add_role('administrator', 'USERNAME')
&gt; #5 /usr/local/src/drush/includes/command.inc(368): call_user_func_array('drush_user_add_...', Array)
&gt; #6 /usr/local/src/drush/includes/command.inc(219): _drush_invoke_hooks(Array, Array)
&gt; #7 [internal function]: drush_command('administrator', 'USERNAME')
&gt; #8 /usr/local/src/drush/includes/command.inc(187): call_user_func_array('drush_command', Array)
&gt; #9 /usr/local/src/drush/lib/Drush/Boot/BaseBoot.php(62): drush_dispatch(Array)
&gt; #10 /usr/local/src/drush/drush.php(70): Drush\Boot\BaseBoot-&gt;bootstrap_and_dispatch()
&gt; #11 /usr/local/src/drush/drush.php(11): drush_main()
&gt; #12 {main}



I am using Drupal Commons 7.50 and Drush 7.0.0.

Edit: Things I have tried:


spelling role correctly and making sure it exists
clearing cache
Syntax was wrong. It needed quotes and capitalization definitely matters.

drush user-add-role "administrator" USERNAME