# Making ghost user

**URL:** <https://community.sendbird.com/t/making-ghost-user/2422>\
**Category:** JavaScript\
**Tags:** group-channel, chatsdk\
**Created:** [June 8, 2021, 9:17am UTC](https://community.sendbird.com/t/making-ghost-user/2422 "2021-06-08T09:17:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![11110](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/11110/32/1122_2.png) [@11110](https://community.sendbird.com/u/11110)\
**Post date:** [June 8, 2021, 9:17am UTC](https://community.sendbird.com/t/making-ghost-user/2422/1 "2021-06-08T09:17:28Z")

</div>

I have a some problems using chat service.  
there are many ghost users in my chat service like this.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/f/f3caaa7a859654a2efff843ac826fa2a48e159de.png)

but i dont really know that why make why ghost users are created.  
i only use startmessage API create group chat startmessage function like this

function startMessaging(txt) {  
var users = ;   
var roomTitle = document.getElementById(‘moim\_name’).value || document.getElementById(‘challenge\_name’).value ;  
var userId = getCookie(‘userId’);  
var params = new sb.GroupChannelParams();  
var temp\_arr = new Array();  
temp\_arr.push(userId);  
params.isPublic = true;  
params.isDistinct = false;  
params.addUserIds(users);  
params.isEphemeral = false;  
params.operatorUserIds = temp\_arr;  
params.name =roomTitle;  
params.channelUrl = txt;  
sb.GroupChannel.createChannel(params, function (channel, error) {  
if (error) {  
return false;  
}  
});  
};

plus, If someone wants to come into the chat room, they can’t come in without cookies to check and let them in.  
But Ghost users are constantly being created. how can i solve this problem?

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [June 8, 2021, 2:00pm UTC](https://community.sendbird.com/t/making-ghost-user/2422/2 "2021-06-08T14:00:02Z")

</div>

Hi @11110,

Can you DM me your APP ID and a couple of these users? I can take a look at our logs and see how they were created.

---

<div class="post-metadata">

**Author:** ![11110](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/11110/32/1122_2.png) [@11110](https://community.sendbird.com/u/11110)\
**Post date:** [June 9, 2021, 8:25am UTC](https://community.sendbird.com/t/making-ghost-user/2422/3 "2021-06-09T08:25:17Z")

</div>

i send DM for u 🙂  
plz check my DM
