[5.0] Auth : add getGenericUser function

mixed|null is not correct