# Team Chat App - https://api.zoom.us/v2/users/me returning "Account does not enabled REST API."

**URL:** <https://devforum.zoom.us/t/team-chat-app-https-api-zoom-us-v2-users-me-returning-account-does-not-enabled-rest-api/85244>\
**Category:** Authentication\
**Created:** [March 23, 2023, 5:45pm UTC](https://devforum.zoom.us/t/team-chat-app-https-api-zoom-us-v2-users-me-returning-account-does-not-enabled-rest-api/85244 "2023-03-23T17:45:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![grayson](https://avatars.discourse-cdn.com/v4/letter/g/c77e96/32.png) [@grayson](https://devforum.zoom.us/u/grayson)\
**Post date:** [March 23, 2023, 5:45pm UTC](https://devforum.zoom.us/t/team-chat-app-https-api-zoom-us-v2-users-me-returning-account-does-not-enabled-rest-api/85244/1 "2023-03-23T17:45:07Z")

</div>

**API Endpoint(s) and/or Zoom API Event(s)**  
[https://zoom.us/oauth/token?grant\_type=client\_credentials](https://zoom.us/oauth/token?grant_type=client_credentials)  
[https://api.zoom.us/v2/users/{userId}](https://api.zoom.us/v2/users/%7BuserId%7D)

**Description**  
I am OAuthing using team chat app against [https://zoom.us/oauth/token](https://zoom.us/oauth/token) with grant\_type=client\_credentials.  
I am using client id and client secret of my chat app. I retrieve the bearer token and pass it to [https://api.zoom.us/v2/users/{userId}](https://api.zoom.us/v2/users/%7BuserId%7D) intending to receive the user’s info. Error response shown below.

I have added /user:read:admin scope to my app and confirmed that my user (which the app is under) has developer role/permissions. Note that I am passing my own userId.

**Error?**  
{  
“code”: 200,  
“message”: “Account does not enabled REST API.”  
}

---

<div class="post-metadata">

**Author:** ![grayson](https://avatars.discourse-cdn.com/v4/letter/g/c77e96/32.png) [@grayson](https://devforum.zoom.us/u/grayson)\
**Post date:** [March 24, 2023, 2:26pm UTC](https://devforum.zoom.us/t/team-chat-app-https-api-zoom-us-v2-users-me-returning-account-does-not-enabled-rest-api/85244/2 "2023-03-24T14:26:46Z")

</div>

I resolved this by creating another app server-to-server app and nesting in my chat app.  
Requires [https://zoom.us/oauth/token?grant\_type=account\_credentials&account\_id={account\_id}](https://zoom.us/oauth/token?grant_type=account_credentials&account_id=%7Baccount_id%7D) where account id is the app’s account id, and use the server to server client id and secret for basic auth.  
I confirmed that my account (where the app is built under) has read user info privileges and also assigned “/user:read:admin” scope to the server-to-server app.

This generated a token that can be used with GET [https://api.zoom.us/v2/users/](https://api.zoom.us/v2/users/) and successfully get user info.

Unfortunately, was not able to resolve this using only chat app client credentials with same scope applied. This needs to be better documented in Zoom APIs docs and App docs as having the scope optional but not work does not make sense.
