# How to get user's department using GET /users/{userId}

**URL:** <https://devforum.zoom.us/t/how-to-get-users-department-using-get-users-userid/62271>\
**Category:** API and Webhooks\
**Created:** [January 6, 2022, 9:14am UTC](https://devforum.zoom.us/t/how-to-get-users-department-using-get-users-userid/62271 "2022-01-06T09:14:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brefaeli](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/brefaeli/32/33849_2.png) [@brefaeli](https://devforum.zoom.us/u/brefaeli)\
**Post date:** [January 6, 2022, 9:14am UTC](https://devforum.zoom.us/t/how-to-get-users-department-using-get-users-userid/62271/1 "2022-01-06T09:14:41Z")

</div>

**Description**  
I want to trace the department of the lecture who initiate the zoom meeting/  
I saw in [https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user)  
that by using " GET/users/{userId}" there are various responses - one of them dept.

Is there any example how to trace user’s department using this command?

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [January 10, 2022, 7:55pm UTC](https://devforum.zoom.us/t/how-to-get-users-department-using-get-users-userid/62271/2 "2022-01-10T19:55:31Z")

</div>

Hi @brefaeli

Thanks for reaching out to the Zoom Developer Forum, I am happy to assist here!  
In order to get the “dept” value on your response, I would suggest you to update your users and assigning them a dept value by calling the Update a user endpoint

> **[Update a user - Users - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/userupdate)**
>
> Update information on a user's Zoom profile. For user-level apps, pass the me value instead of the userId parameter.
> 
> Scopes: user:write:admin user:writ...

Once you have assigned a “dept” value on each user then you will be able to call the Get a user endpoint and get a proper value on your response body

> **[Get a user - Users - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user)**
>
> Use this API to view a user's information on a Zoom account. For user-level apps, pass the me value instead of the userId parameter. 
> 
> Note: Users who h...

Hope this helps,  
Best,  
Elisa

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [February 10, 2022, 5:56am UTC](https://devforum.zoom.us/t/how-to-get-users-department-using-get-users-userid/62271/3 "2022-02-10T05:56:30Z")

</div>

Closed on February 10, 2022, 5:56am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
