getting user by id is preferential than getting user by login name

Signed-off-by: TomWu <phperwuhan@gmail.com>