def METHOD_NAME(self, data, view_kwargs):
    """
    before create object method for UsersGroupsRolesListPost Class
    :param data:
    :param view_kwargs:
    :return:
    """
    role_already_exists = UsersGroupsRoles.query.filter_by(
        email=data['email'], group_id=data['group'], role_id=data['role']
    ).count()
    if role_already_exists:
        raise ConflictError(
            {'source': '/data'}, 'Role Invite has already been sent for this email.'
        )
    user = User.query.filter_by(email=data['email']).first()
    if user:
        data['user_id'] = user.id