def METHOD_NAME(self, user_id_list, id_type, request, redirect_url):  # lint-amnesty, pylint: disable=missing-function-docstring
    created_id_list = []
    existing_id = []
    user_list = User.objects.filter(
        id__in=user_id_list
    )
    for user in user_list:
        new_external_id, created = ExternalId.objects.get_or_create(  # lint-amnesty, pylint: disable=unused-variable
            user=user,
            external_id_type=id_type,
        )
        if created:
            created_id_list.append(user.id)
        else:
            existing_id.append(user.id)
    found_user_ids = created_id_list + existing_id
    unknown_users = list(set(user_id_list) - set(found_user_ids))
    result_msg = self._generate_results_msg(user_id_list, unknown_users, created_id_list, existing_id)
    logger.info(result_msg)
    self.message_user(
        request,
        result_msg,
        level=messages.SUCCESS)
    return HttpResponseRedirect(redirect_url)