Convert `whoami` plugin to new API