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
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 
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
{
"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
{
"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
Thank you Jaycee!!
I was missing the parameter:
hubspot_owner_id
It solves my problem
Amazing! I’m glad that helped get you moving forward. — Jaycee