# owners API - archived users without userID

**URL:** <https://community.hubspot.com/t/owners-api-archived-users-without-userid/62150>\
**Category:** APIs & Integrations\
**Created:** [August 2, 2022, 10:37am UTC](https://community.hubspot.com/t/owners-api-archived-users-without-userid/62150 "2022-08-02T10:37:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![R111](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@R111](https://community.hubspot.com/u/R111)\
**Post date:** [August 2, 2022, 10:37am UTC](https://community.hubspot.com/t/owners-api-archived-users-without-userid/62150/1 "2022-08-02T10:37:37Z")

</div>

Hello,

I try to extracted deleted users info in my organization.

I use the endpoint `/crm/v3/owners/?archived=true` in order to get the deleted users.

The field `userId` in all users is **null**.

Is there a way to receive the userId of an archived user?

Thank you!

 ![R111_0-1659436297904.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/0/40175122640ebc2ecbff260f258b394e11643982.png)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [August 2, 2022, 10:15pm UTC](https://community.hubspot.com/t/owners-api-archived-users-without-userid/62150/2 "2022-08-02T22:15:07Z")

</div>

Hi, @R111 👋 To confirm, you are not missing anything here.

If a user is [**Deactivated**](https://knowledge.hubspot.com/settings/deactivate-hubspot-users#deactivate-a-user), they will continue to return a value for “userId” If a User is fully [**Removed**](https://knowledge.hubspot.com/settings/deactivate-hubspot-users#remove-a-user-or-your-user-account), there will no longer be a “userId” to return.

It’s not my favorite answer to give, and I don’t want you to search for something that isn’t available via API.

Best,

Jaycee
