# Can't disassociate pending user

**URL:** <https://devforum.zoom.us/t/cant-disassociate-pending-user/9211>\
**Category:** API and Webhooks\
**Created:** [March 22, 2020, 10:30am UTC](https://devforum.zoom.us/t/cant-disassociate-pending-user/9211 "2020-03-22T10:30:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![quranonlinemessage](https://avatars.discourse-cdn.com/v4/letter/q/ad7895/32.png) [@quranonlinemessage](https://devforum.zoom.us/u/quranonlinemessage)\
**Post date:** [March 22, 2020, 10:30am UTC](https://devforum.zoom.us/t/cant-disassociate-pending-user/9211/1 "2020-03-22T10:30:30Z")

</div>

I get error code 1001 when I try to disassociate a pending user.

 ![2020-03-22 (1)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8e6289ef8755673779910538f54b536c7d33d881.png) ![2020-03-22 (2)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/7/7fbac14319131378eec02bd1116cff8c14768ad4.png) ![2020-03-22 (3)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/5/51b632797af0b13b6e4879e888552ec9cc02e81c.png)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 23, 2020, 7:43pm UTC](https://devforum.zoom.us/t/cant-disassociate-pending-user/9211/2 "2020-03-23T19:43:17Z")

</div>

Hey @quranonlinemessage,

I think the reason why this is happening is because the user is in the “pending” state, meaning they have not completed the signup flow.

Can you try deleting the user and re adding it?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![quranonlinemessage](https://avatars.discourse-cdn.com/v4/letter/q/ad7895/32.png) [@quranonlinemessage](https://devforum.zoom.us/u/quranonlinemessage)\
**Post date:** [March 24, 2020, 4:42am UTC](https://devforum.zoom.us/t/cant-disassociate-pending-user/9211/3 "2020-03-24T04:42:07Z")

</div>

Hey @tommy,

I found this in the reference.

 ![Inked2020-03-24_LI](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/823a96f909aa259462ca849463687b3d0139bb20.jpeg) .

- If the user was linked to my account then I disassociated him, The API works well.

---

<div class="post-metadata">

**Author:** ![quranonlinemessage](https://avatars.discourse-cdn.com/v4/letter/q/ad7895/32.png) [@quranonlinemessage](https://devforum.zoom.us/u/quranonlinemessage)\
**Post date:** [March 24, 2020, 6:10am UTC](https://devforum.zoom.us/t/cant-disassociate-pending-user/9211/4 "2020-03-24T06:10:50Z")

</div>

I also have another question, Why when I create a meeting using create meeting API for a user and get a list of live meetings, I get empty meetings array.  
Although, when I create a meeting using their personal ID, it works well

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 24, 2020, 7:01pm UTC](https://devforum.zoom.us/t/cant-disassociate-pending-user/9211/5 "2020-03-24T19:01:35Z")

</div>

Hey @quranonlinemessage,

[Did passing in disassociate work](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/userdelete)?

> [@quranonlinemessage](#):
>
> Why when I create a meeting using create meeting API for a user and get a list of live meetings, I get empty meetings array.

What [type of meeting](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate) are you creating? If it is type `1`, an instant meeting, it will not show up.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![quranonlinemessage](https://avatars.discourse-cdn.com/v4/letter/q/ad7895/32.png) [@quranonlinemessage](https://devforum.zoom.us/u/quranonlinemessage)\
**Post date:** [March 25, 2020, 2:05am UTC](https://devforum.zoom.us/t/cant-disassociate-pending-user/9211/6 "2020-03-25T02:05:02Z")

</div>

Hey @tommy,

> [@Tommy](#):
>
> [Did passing in disassociate work](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/userdelete)?

Yeah, It works now.

> [@Tommy](#):
>
> If it is type `1`

Yeah, it is 1. Is there any way to get the meeting so I can end it and create a new one.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 25, 2020, 6:47am UTC](https://devforum.zoom.us/t/cant-disassociate-pending-user/9211/7 "2020-03-25T06:47:33Z")

</div>

Hey @quranonlinemessage,

If you use [scheduled meetings](https://support.zoom.us/hc/en-us/articles/201362533-Meet-Now-vs-Scheduled-Meetings), (type `2` in the API) then you can get the meeting to end it.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![quranonlinemessage](https://avatars.discourse-cdn.com/v4/letter/q/ad7895/32.png) [@quranonlinemessage](https://devforum.zoom.us/u/quranonlinemessage)\
**Post date:** [March 25, 2020, 7:13am UTC](https://devforum.zoom.us/t/cant-disassociate-pending-user/9211/8 "2020-03-25T07:13:51Z")

</div>

Hey @tommy,  
Thank you very mush.  
Now I want to know, I created OAuth app and it returned refresh\_token with the response, Is it important to store it in the DB?

 ![2020-03-25 (1)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/4/484643e95363758324096a4f0b9094bc8994f2b8.png) ![2020-03-25 (2)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/a/a6cbfdd9a660a070b52984e7f5aee93d6b85f43c.png)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 25, 2020, 4:19pm UTC](https://devforum.zoom.us/t/cant-disassociate-pending-user/9211/9 "2020-03-25T16:19:47Z")

</div>

Hey @quranonlinemessage,

Yes you must also store the refresh\_token because that is how you refresh and get a new access\_token after it expires.

Please see the instructions here:

[https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#refreshing](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#refreshing)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:35pm UTC](https://devforum.zoom.us/t/cant-disassociate-pending-user/9211/10 "2020-08-21T19:35:08Z")

</div>


