def get_user(request):
    """
    Return the user for the request or None.

    :rtype: h.models.User or None

    """
    if request.authenticated_userid is None:
        return None

    user_service = request.find_service(name="user")
    user = user_service.fetch(request.authenticated_userid)

    return user