Connecting USB Devices to Virtualbox in Ubuntu 18

I was trying to connect a USB Scanner to a Windows Guest OS running in Ubuntu, but there were no USB devices visible when I clicked on the USB icon in the tray. Turns out the host user needs to be added to vboxusers group using the following command:

sudo adduser $USER vboxusers

More on that here: