Add generic __get_user and __get_group method and raise HTTPBadRequest where the request is wrong