I’d suggest you have a look at the source code of the Users.Vue in the kirby repo:
Basically, you could probably copy this and make your changes.