How to access USB devices from within VirtualBox virtual machines

I constantly forget to add myself to the proper user group to access USB devices from within VirtualBox virtual machines, so I need to write it down.

First step

Add currently logged in user to the vboxusers group.

$ sudo adduser $(whoami) vboxusers

Second step

Log in again to apply changes.

References