[5.0] Auth : add getGenericUser function

object|null is maybe better?