Select user by more logical grounds when no user is specified (bug #1458, sorta)