# Looking up who has a webinar license assigned

**URL:** <https://devforum.zoom.us/t/looking-up-who-has-a-webinar-license-assigned/50051>\
**Category:** API and Webhooks\
**Created:** [May 11, 2021, 4:54pm UTC](https://devforum.zoom.us/t/looking-up-who-has-a-webinar-license-assigned/50051 "2021-05-11T16:54:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jferguson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jferguson/32/9015_2.png) [@jferguson](https://devforum.zoom.us/u/jferguson)\
**Post date:** [May 11, 2021, 4:54pm UTC](https://devforum.zoom.us/t/looking-up-who-has-a-webinar-license-assigned/50051/1 "2021-05-11T16:54:17Z")

</div>

I have a process where users can check out our single 5K webinar license and my script will assign it to them at the correct time and remove it when their time is up. My concern is if my process loses track of who had the license assigned so that I can remove it.

What is the most efficient (quickest) way to determine who has the license? The only way I can find to do that is to enumerate all users and check each one’s settings one by one. With over 44k users that could take quite a while.

Is there a better way to look up who has the 5K webinar license? Or even to filter by who has ANY webinar license? Which would be a comparatively much smaller number to look through?

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [May 12, 2021, 7:41pm UTC](https://devforum.zoom.us/t/looking-up-who-has-a-webinar-license-assigned/50051/2 "2021-05-12T19:41:00Z")

</div>

Hi @jferguson,

Have you considered subscribing to our User Updated webhook?

> **[User Updated - User Events - Webhook Reference - API Reference](https://marketplace.zoom.us/docs/api-reference/webhook-reference/user-events/user-updated)**
>
> User Updated
> 
> 
> 
> Users, account admins and account owners can update information on the user profile information. Profile updates can be made either by a...

This would be triggered each time a license is assigned or removed from a user.

Let me know if this might help,  
Will

---

<div class="post-metadata">

**Author:** ![jferguson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jferguson/32/9015_2.png) [@jferguson](https://devforum.zoom.us/u/jferguson)\
**Post date:** [May 18, 2021, 8:07pm UTC](https://devforum.zoom.us/t/looking-up-who-has-a-webinar-license-assigned/50051/3 "2021-05-18T20:07:37Z")

</div>

I have not. It seems there’s a lot of infrastructure that needs to be put in place to expose that. Is there no other way to look that up using the regular API?

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [May 19, 2021, 4:13pm UTC](https://devforum.zoom.us/t/looking-up-who-has-a-webinar-license-assigned/50051/4 "2021-05-19T16:13:11Z")

</div>

Hi @jferguson,

You can also query this endpoint directly:

> **[Get user settings - Users - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usersettings)**
>
> Retrieve a user's settings.
> Scopes: user:read:admin user:read
> 
> Rate Limit Label: Medium
> 
> Authorization
> 
> Flow: authorizationCode
> 
> Authorization URL: htt...

The `feature` object contains a webinar field which will state whether or not a webinar license is applied to the user.

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![jferguson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jferguson/32/9015_2.png) [@jferguson](https://devforum.zoom.us/u/jferguson)\
**Post date:** [May 19, 2021, 8:39pm UTC](https://devforum.zoom.us/t/looking-up-who-has-a-webinar-license-assigned/50051/5 "2021-05-19T20:39:58Z")

</div>

Yeah. That’s the method I’m trying to get around using. It requires first enumerating every user in the account (~44k) and checking each user. This process takes several hours and is certainly a last resort backup if I absolutely need to find it but with my scheduled process the person’s webinar, who needs it, will be long over.

It’s looking like that’s the best that can be done. I’ll just have to devise a fool proof way of storing who has the license in some external source so I don’t risk losing track of it. If someone manually sets it to someone I’ll just have to resort to the long method. I’m just really surprise that if you try to set the license while someone else has it it takes a millisecond to tell me it’s not available and the only recourse is to script an hours long process to find it. It could simply display who has it along with the error that it’s not available.

Thanks for the suggestions. I’ll make something work.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [May 20, 2021, 4:05pm UTC](https://devforum.zoom.us/t/looking-up-who-has-a-webinar-license-assigned/50051/6 "2021-05-20T16:05:39Z")

</div>

Hi @jferguson,

Thanks for the reply and the feedback—I can definitely appreciate that there’s room for improving the way in which this information can be queried.

While these endpoints will be your best bet for now, do let us know if you run into any other questions.

Thanks,  
Will

---

<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:** [June 20, 2021, 2:05am UTC](https://devforum.zoom.us/t/looking-up-who-has-a-webinar-license-assigned/50051/7 "2021-06-20T02:05:56Z")

</div>

Closed on June 20, 2021, 2:05am UTC

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