Adapt docs example to also support getting a custom defined user

For someone who didn't define a custom user, the end result will
remain the same. For someone who did define one, the custom user is
called.