@require_admin
    def post(self):
        req = request.get_json(force=True)
        require_fields(req, ('name', 'email'))

        user = models.User(org=self.current_org,
                           name=req['name'],
                           email=req['email'],
                           groups=[self.current_org.default_group.id])

        try:
            user.save()
        except IntegrityError as e:
            if e.message in "email":
                abort(400, message='Email already taken.')

            abort(500)

        self.record_event({
            'action': 'create',
            'timestamp': int(time.time()),
            'object_id': user.id,
            'object_type': 'user'
        })

        invite_url = invite_user(self.current_org, self.current_user, user)

        d = user.to_dict()
        d['invite_link'] = invite_url

        return d
dataset/ETHPy150Open getredash/redash/redash/handlers/users.py/UserListResource.post/swapped operands of `in`