def _MakeUserEntity(self, email, user_perms):
    u = models.User(key_name=email, user=users.User(email=email))
    for permission_type in permissions.TYPES:
      u.SetPerms(user_perms.get(permission_type, []), permission_type)
    return u
Returns a models.User entity.
dataset/ETHPy150Open google/cauliflowervest/src/cauliflowervest/server/cron/group_sync.py/GroupSync._MakeUserEntity