# When Filtering for owner by email get empty response.

**URL:** <https://community.hubspot.com/t/when-filtering-for-owner-by-email-get-empty-response/97344>\
**Category:** APIs & Integrations\
**Tags:** cms-content\
**Created:** [January 8, 2024, 3:56pm UTC](https://community.hubspot.com/t/when-filtering-for-owner-by-email-get-empty-response/97344 "2024-01-08T15:56:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![IMcDowell](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@IMcDowell](https://community.hubspot.com/u/IMcDowell)\
**Post date:** [January 8, 2024, 3:56pm UTC](https://community.hubspot.com/t/when-filtering-for-owner-by-email-get-empty-response/97344/1 "2024-01-08T15:56:44Z")

</div>

I’ve encountered an issue while attempting to retrieve a specific owner’s information using their email address. When I filter for the email using the following API endpoint: [https://api.hubapi.com/crm/v3/owners?email=example+hasplus@xyz.com](https://api.hubapi.com/crm/v3/owners?email=example@xyz.com), the query returns an empty result.

I can successfully obtain details for other owners using their email addresses. The issue seems to be isolated to this particular owner. When I request a list of all owners, the owner in question does appear in the response alongside other owners.

It’s worth noting that I’m working within a sandbox account, and the owner I’m trying to access was only invited to this sandbox account. Could this be contributing to the issue?

---

<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:** [January 8, 2024, 11:16pm UTC](https://community.hubspot.com/t/when-filtering-for-owner-by-email-get-empty-response/97344/2 "2024-01-08T23:16:43Z")

</div>

Hey, @IMcDowell 👋 I believe your instinct is correct — the user will need to accept the invite to show up with an ownerID.

One question — do you have the same result if you make a request to the Get Users endpoint?

`GET /settings/v3/users/`

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![IMcDowell](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@IMcDowell](https://community.hubspot.com/u/IMcDowell)\
**Post date:** [January 9, 2024, 7:28am UTC](https://community.hubspot.com/t/when-filtering-for-owner-by-email-get-empty-response/97344/3 "2024-01-09T07:28:16Z")

</div>

I have accepted the invite with the user account, and I can use Hubspot with the user.  
I am still not able to filter for the user by email. I can see the user in the response when using /settings/v3/users/.  
This owner is the only onwner with **pluses** in ther emial, could this be causing the issue?

---

<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:** [January 11, 2024, 11:16pm UTC](https://community.hubspot.com/t/when-filtering-for-owner-by-email-get-empty-response/97344/4 "2024-01-11T23:16:01Z")

</div>

Hey @IMcDowell 👋 That could be it. I know in other situations where special characters cause issues in URL params, we have to escape them. In this case, I think the `+` gets interpreted as a “space”. I’m digging a bit to see what the recommended way to escape the `+` is.  
Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![IMcDowell](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@IMcDowell](https://community.hubspot.com/u/IMcDowell)\
**Post date:** [January 12, 2024, 9:20am UTC](https://community.hubspot.com/t/when-filtering-for-owner-by-email-get-empty-response/97344/5 "2024-01-12T09:20:13Z")

</div>

Thanks [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074), please let me know what you find 🙂

---

<div class="post-metadata">

**Author:** ![IMcDowell9](https://avatars.discourse-cdn.com/v4/letter/i/ecc23a/32.png) [@IMcDowell9](https://community.hubspot.com/u/IMcDowell9)\
**Post date:** [February 13, 2024, 11:05am UTC](https://community.hubspot.com/t/when-filtering-for-owner-by-email-get-empty-response/97344/6 "2024-02-13T11:05:46Z")

</div>

[@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) did you find anything?

---

<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:** [May 21, 2024, 3:06am UTC](https://community.hubspot.com/t/when-filtering-for-owner-by-email-get-empty-response/97344/7 "2024-05-21T03:06:20Z")

</div>

Closing the loop here. You do have to escape the plus when using it as a query param.

I made a user using the email example you provided – [User Provisioning API](https://developers.hubspot.com/docs/api/settings/user-provisioning), and then made a request to the [Owners API](https://developers.hubspot.com/docs/api/crm/owners). It returned a 200 with the expected User:

Request

```lia-code-sample
curl --request GET \
 --url 'https://api.hubapi.com/crm/v3/owners/?email=example%2Bhasplus%40xyz.com&limit=100&archived=false' \
 --header 'authorization: Bearer YOUR_ACCESS_TOKEN'

```

Response

```lia-code-sample
HTTP 200

{
 "results": [
 {
 "id": "1407217891",
 "email": "example+hasplus@xyz.com",
 "firstName": "Example",
 "lastName": "Hasplus",
 "userId": 67209915,
 "userIdIncludingInactive": 67209915,
 "createdAt": "2024-05-21T02:53:49.173Z",
 "updatedAt": "2024-05-21T02:53:49.173Z",
 "archived": false
 }
 ]
}

```

I hope this helps folks who run into similar issues! — Jaycee
