# API Get a User -\> retrieving User Id's from Emails

**URL:** <https://devforum.zoom.us/t/api-get-a-user-retrieving-user-ids-from-emails/80621>\
**Category:** Users and Groups\
**Tags:** api\
**Created:** [December 22, 2022, 12:54am UTC](https://devforum.zoom.us/t/api-get-a-user-retrieving-user-ids-from-emails/80621 "2022-12-22T00:54:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike5](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mike5/32/43984_2.png) [@mike5](https://devforum.zoom.us/u/mike5)\
**Post date:** [December 22, 2022, 12:54am UTC](https://devforum.zoom.us/t/api-get-a-user-retrieving-user-ids-from-emails/80621/1 "2022-12-22T00:54:18Z")

</div>

I’m working on this endpoint [https://api.zoom.us/v2/users/](https://api.zoom.us/v2/users/){user ID} and trying to get user ids of my colleagues from their emails. I’m using Python.

Here is my request:  
requests.get('[https://api.zoom.us/v2/users/{email@example.com}](https://api.zoom.us/v2/users/%7Bemail@example.com%7D), headers={ ‘Authorization’: 'Bearer {Token} })

But I get back a:  
‘code’: 403,  
‘message’: ‘Authenticated user has not permitted access to the targeted resource.’

I have developer permissions and have permission to the “entire account” for “webinars”. My role is a “developer”.

My question is, do I need different permissions to access other people’s ID through this endpoint? If so what permissions do I need?

thanks for the help in advance

---

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [December 23, 2022, 9:48am UTC](https://devforum.zoom.us/t/api-get-a-user-retrieving-user-ids-from-emails/80621/2 "2022-12-23T09:48:23Z")

</div>

Hi, You need to have user:read or user:read:admin scope. You need to create a JWT app and get the token directly from Marketplace or Create OAuth App and add a user:read (User-Level App) or user:read:admin (Account-Level App) from the Scopes tab and then authorize and get access token use that. For more please watch sessions here

- How to Create [OAuth App](https://youtu.be/LY7jXL9FSqA) and [Get Access Token](https://youtu.be/ytkNxMyZ8_E)?
- How to get the [Zoom Users List](https://youtu.be/pMooFsA1T6E) using REST API?

---

<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:** [December 23, 2022, 9:27pm UTC](https://devforum.zoom.us/t/api-get-a-user-retrieving-user-ids-from-emails/80621/3 "2022-12-23T21:27:55Z")

</div>

Hi @mike5  
To be able to query users you also need view Users permissions granted to your Developer role.  
Hope this helps!  
Elisa
