# Inviting users with groups field failed when there is an existing user in the list

**URL:** <https://meta.discourse.org/t/inviting-users-with-groups-field-failed-when-there-is-an-existing-user-in-the-list/109990>\
**Category:** Bug\
**Created:** [2월 25, 2019, 3:32오전 UTC](https://meta.discourse.org/t/inviting-users-with-groups-field-failed-when-there-is-an-existing-user-in-the-list/109990 "2019-02-25T03:32:15Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [4월 15, 2019, 2:56오후 UTC](https://meta.discourse.org/t/inviting-users-with-groups-field-failed-when-there-is-an-existing-user-in-the-list/109990/9 "2019-04-15T14:56:23Z")

</div>

> [@tgxworld](#):
>
> An error is thrown when there is an existing user even before the security fix.

That is correct the error was being logged in a notification PM when bulk inviting an existing user, but (before the security fix) the user was indeed added to the specified group via [this block of code](https://github.com/discourse/discourse/commit/978f0db109cccfb5c1fd80640f0c080a1caca8b8#diff-9592cb71c2bb6ae748d9ac2fc3596e86L106).

Thanks for the proper fix here!

---

_[View the full topic](https://meta.discourse.org/t/inviting-users-with-groups-field-failed-when-there-is-an-existing-user-in-the-list/109990)._
