# Identifing Users via API

**URL:** <https://community.hubspot.com/t/identifing-users-via-api/127861>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [March 12, 2025, 9:16pm UTC](https://community.hubspot.com/t/identifing-users-via-api/127861 "2025-03-12T21:16:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AFavre5](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@AFavre5](https://community.hubspot.com/u/AFavre5)\
**Post date:** [March 12, 2025, 9:16pm UTC](https://community.hubspot.com/t/identifing-users-via-api/127861/1 "2025-03-12T21:16:22Z")

</div>

Hi all,  
I’m trying to build a workflow to assign tickets to only available users.  
I have almost everything working well except for being able to identify my user.  
I’m using the following get call to get my user availability:  
[https://api.hubapi.com/crm/v3/objects/users?properties=hs\_availability\_status](https://api.hubapi.com/crm/v3/objects/users?properties=hs_availability_status)  
Which returns a list of the information I want and an ID.

{

“results”: [

{

“id”: “999999999”,

“properties”: {

“hs\_availability\_status”: “away”,

“hs\_createdate”: “2023-12-26T06:37:08.916Z”,

“hs\_lastmodifieddate”: “2025-03-12T14:21:25.624Z”,

“hs\_object\_id”: “999999999”

},

“createdAt”: “2023-12-26T06:37:08.916Z”,

“updatedAt”: “2025-03-12T14:21:25.624Z”,

“archived”: false

},

But I can’t link this ID to anything since the result does not give me any other information.  
SO what I’m looking for is a mapping between this ID from the users and ideally the owner record.  
I know I can probably look at the create date between the 2 record and link them with that but it does not feel robust.  
Hopefully somebdy faced this issue before me 🙂

---

<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:** [March 13, 2025, 4:27pm UTC](https://community.hubspot.com/t/identifing-users-via-api/127861/2 "2025-03-13T16:27:34Z")

</div>

Hey, @AFavre5 👋 Thanks for the great question. I appreciate you including your details. Have you tried modifying your initial request to the Users API to include a few additional properties, like —

“hs\_internal\_user\_id” and “hubspot\_owner\_id”? If the root issue is getting an ID that you can use to assign ownership of a ticket to a User then I think “hubspot\_owner\_id” should get us there.

Example:

Request

`https://api.hubapi.com/crm/v3/objects/users?properties=hs_availability_status,hubspot_owner_id,hs_internal_user_id`

Response

```lia-code-sample
{
 "results": [
 {
 "id": "208863745667",
 "properties": {
 "hs_availability_status": null,
 "hs_createdate": "2023-01-20T19:03:45.204Z",
 "hs_internal_user_id": "49284099",
 "hs_lastmodifieddate": "2023-08-23T08:49:09.597Z",
 "hs_object_id": "208863745667",
 "hubspot_owner_id": "312325810"
 }...
 ]
}

```

Ticket creation

`https://api.hubapi.com/crm/v3/objects/tickets`

```lia-code-sample
{
 "properties": {
 "hs_pipeline": "0",
 "hs_pipeline_stage": "1",
 "hs_ticket_priority": "HIGH",
 "subject": "troubleshoot report2",
 "source_type": "MY_CAT",
 "hubspot_owner_id": "312325810"
 }
}

```

If this isn’t what you’re after, please let me know, and we’ll what else we can brainstorm up for this use case.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![AFavre5](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@AFavre5](https://community.hubspot.com/u/AFavre5)\
**Post date:** [March 13, 2025, 5:10pm UTC](https://community.hubspot.com/t/identifing-users-via-api/127861/3 "2025-03-13T17:10:04Z")

</div>

Thank you Jaycee!!  
I was missing the parameter:

`hubspot_owner_id`

It solves my problem

---

<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:** [March 13, 2025, 9:57pm UTC](https://community.hubspot.com/t/identifing-users-via-api/127861/4 "2025-03-13T21:57:46Z")

</div>

Amazing! I’m glad that helped get you moving forward. — Jaycee
