# How do I get the user-id for a chatbot

**URL:** <https://devforum.zoom.us/t/how-do-i-get-the-user-id-for-a-chatbot/19667>\
**Category:** API and Webhooks\
**Created:** [May 31, 2020, 5:01am UTC](https://devforum.zoom.us/t/how-do-i-get-the-user-id-for-a-chatbot/19667 "2020-05-31T05:01:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shlomo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shlomo/32/9519_2.png) [@shlomo](https://devforum.zoom.us/u/shlomo)\
**Post date:** [May 31, 2020, 5:01am UTC](https://devforum.zoom.us/t/how-do-i-get-the-user-id-for-a-chatbot/19667/1 "2020-05-31T05:01:24Z")

</div>

I am trying to create a chatbot that sends messages to the users in a meeting.  
I don’t realy understand how it works.  
Do I need to create also a “jwt” app?  
Do the users need to install this jwt app from the marketplace?  
I have a PHP script that get access\_token, but when I try to use it in another script to get the user-id (of me) I get an error invalid access\_token, so I understand that the oath\_access\_token is not the same as access\_token.  
function getUserId($user\_id,$access\_token)  
{  
$clientID="";  
$clientSecret="";  
$content = “oauth\_access\_token=$access\_token”;  
$token\_url=“[https://zoom.us/v2/users/me](https://zoom.us/v2/users/me)”; // {$user\_id}";  
$curl = curl\_init();  
curl\_setopt\_array($curl, array(  
CURLOPT\_URL =\> $token\_url,  
CURLOPT\_SSL\_VERIFYPEER =\> true,  
CURLOPT\_RETURNTRANSFER =\> true,  
CURLOPT\_POST =\> true,  
CURLOPT\_POSTFIELDS =\> $content  
));  
$response = curl\_exec($curl);  
curl\_close($curl);  
$response=json\_decode($response,true);  
print\_r($response);  
}

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 4, 2020, 4:52pm UTC](https://devforum.zoom.us/t/how-do-i-get-the-user-id-for-a-chatbot/19667/2 "2020-06-04T16:52:03Z")

</div>

Hey @shlomo,

Zoom Chatbots work within [Zoom Chat](https://zoom.us/feature/messaging), not the [In Meeting Chat](https://support.zoom.us/hc/en-us/articles/203650445-In-meeting-chat).

Here are the Zoom Chatbot docs:

> **[Chatbot - Build an App - Documentation](https://marketplace.zoom.us/docs/guides/build/chatbot-app)**
>
> Create a Chatbot App
> 
> Chatbots are apps installed within the Zoom Client which interact with users using the chat interface. Chatbots could be created t...

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![shlomo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shlomo/32/9519_2.png) [@shlomo](https://devforum.zoom.us/u/shlomo)\
**Post date:** [June 5, 2020, 1:22am UTC](https://devforum.zoom.us/t/how-do-i-get-the-user-id-for-a-chatbot/19667/3 "2020-06-05T01:22:13Z")

</div>

Thanks.  
So, it means that I can use the chatbot only to the users that installed my app?  
Also, If I understood the reply I receied from Michael, currently I cann’t send the message while in the meeting. He wrote that you are working to fix it.  
Do you know when it will be ready, and how will I know about it?

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [June 6, 2020, 12:54am UTC](https://devforum.zoom.us/t/how-do-i-get-the-user-id-for-a-chatbot/19667/4 "2020-06-06T00:54:21Z")

</div>

@shlomo Yes, only users who have installed your app can use it. This is by design to allow for users to guarantee explicit permission over which apps can use APIs and access data on their behalf.

As I wrote in our other thread, this is not a fix we are working on. This would be a fully new product feature. We do not have a timeline for this.

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 9:54pm UTC](https://devforum.zoom.us/t/how-do-i-get-the-user-id-for-a-chatbot/19667/5 "2020-08-21T21:54:43Z")

</div>

Closed on August 21, 2020, 9:54pm UTC


