How to add user to group (dialout)

I'm having an issue add my user to the dialout group that I need to have permission on usb serial port for arduino developpment. I tried this
sudo usermod -a -G dialout <username>
and it doesn't work.
Was this page helpful?