miguelrcabral
4/1/2020 - 3:19 PM

Promote/Demote User

If you would like to add a role to a user you simply pass the username of the user as the first argument to the command and the role to add to the user as the second.

$ php bin/console fos:user:promote testuser ROLE_ADMIN


$ php bin/console fos:user:demote testuser ROLE_ADMIN