# When I request inactive users, I'm getting both active and inactive users

**URL:** <https://devforum.zoom.us/t/when-i-request-inactive-users-im-getting-both-active-and-inactive-users/57431>\
**Category:** API and Webhooks\
**Created:** [September 14, 2021, 3:00pm UTC](https://devforum.zoom.us/t/when-i-request-inactive-users-im-getting-both-active-and-inactive-users/57431 "2021-09-14T15:00:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpenfold](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/wpenfold/32/31027_2.png) [@wpenfold](https://devforum.zoom.us/u/wpenfold)\
**Post date:** [September 14, 2021, 3:00pm UTC](https://devforum.zoom.us/t/when-i-request-inactive-users-im-getting-both-active-and-inactive-users/57431/1 "2021-09-14T15:00:59Z")

</div>

Hi, when I REST Get [https://api.zoom.us/v2/users?status=inactive&page\_size=300&page\_number=1](https://api.zoom.us/v2/users?status=inactive&page_size=300&page_number=1)

I’m receiving both ‘active’ and ‘inactive’ accounts. If I request ‘active’, then I just get active accounts. According to the documentation, ‘active’ is the default, but I should only be able to return accounts with the specified status…not both…? Am I missing something here?

---

<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:** [September 15, 2021, 4:37pm UTC](https://devforum.zoom.us/t/when-i-request-inactive-users-im-getting-both-active-and-inactive-users/57431/2 "2021-09-15T16:37:31Z")

</div>

Hey @wpenfold,

Thanks for reaching out about this—I haven’t been able to replicate this so far. Are you seeing users returned with “active” in the API response when you use the “inactive” query param, or are you comparing somewhere else like the UI?

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![wpenfold](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/wpenfold/32/31027_2.png) [@wpenfold](https://devforum.zoom.us/u/wpenfold)\
**Post date:** [September 15, 2021, 6:21pm UTC](https://devforum.zoom.us/t/when-i-request-inactive-users-im-getting-both-active-and-inactive-users/57431/3 "2021-09-15T18:21:25Z")

</div>

Hi Will, Thanks for responding. I discovered that the application pages thru the results, and while I changed the initial api call to status=inactive, I also needed to change the subsequent api calls to include the filter. The result was, the first page pulled inactive accounts, but subsequent pages were still returning active accounts. So, my problem 🙂

---

<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:** [September 17, 2021, 1:43pm UTC](https://devforum.zoom.us/t/when-i-request-inactive-users-im-getting-both-active-and-inactive-users/57431/4 "2021-09-17T13:43:00Z")

</div>

Ah, I see! Glad you figured it out. 🙂

---

<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:** [October 17, 2021, 11:43pm UTC](https://devforum.zoom.us/t/when-i-request-inactive-users-im-getting-both-active-and-inactive-users/57431/5 "2021-10-17T23:43:32Z")

</div>

Closed on October 17, 2021, 11:43pm UTC

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