A user object stores information such as a user’s working hours, timezone, additional phone number, and job title. The user endpoints allow you to manage this data and sync it between HubSpot and other systems.
GET
request to /crm/v3/objects/users/
.GET
request to the above URL and specify a user ID. For example: crm/v3/objects/users/207838823235
.POST
request to /crm/v3/objects/users/batch/read
.POST
request to /crm/v3/objects/users/search
and include search filters in the request body. Learn more about searching the CRM.id
and hs_object_id
are the same and represent a user only in the HubSpot account from which the data was requested. This is different than the id
values in the user provisioning API (hs_internal_user_id
) which refers to a user across all accounts, and in the owners API (hubspot_owner_id
) which refers to a user as an owner of records.properties
query parameter in the request URL along with comma-separated property names. Learn more about user properties below.
For example, making a GET
request to the following URL would result in the response below:
crm/v3/objects/users?properties=hs_job_title,hs_additional_phone
idProperty
field.
For example, to read a batch of users, your request could look like either of the following:
PATCH
request to /crm/v3/objects/users/{userId}
.POST
request to /crm/v3/objects/users/batch/update
, including the user IDs or unique idProperty
in the request body as shown in the section above.GET
request to crm/v3/properties/user
. Learn more about using the properties API.
Below are the user properties that can be set through this API.
Parameter | Type | Description |
---|---|---|
hs_additional_phone | String | The user’s additional phone number. Users can set this in their user preferences. |
hs_availability_status | String | The user’s availability status. The value must be either "available" or "away" . |
hs_job_title | String | The user’s job title. Users can set this in their user preferences. |
hs_main_user_language_skill | String | The user’s main language skill. The value must match an existing language skill. Learn more about formatting language skills below. |
hs_out_of_office_hours | String | The user’s out of office hours. Out of office hours must not overlap. Each out of office hours’ start time must be later than the previous start time. |
hs_secondary_user_language_skill | String | The user’s secondary language skill. The value must match an existing language skill. Learn more about formatting language skills below. |
hs_standard_time_zone | String | The user’s timezone. Timezone values must use standard TZ identifiers, such as "America/New_York" or "Europe/Dublin" . This property must be set before you can set the user’s working hours. |
hs_uncategorized_skills | String | The user’s custom uncategorized skill. This property value must match an existing custom uncatgorized skill in the portal. |
hs_working_hours | String | The user’s working hours. This property value is formatted as stringified JSON. Learn more about formatting for working hours below. |
hs_working_hours
accepts a stringified JSON value. It consists of an array with an object for each set of working hours.
Parameter | Type | Description |
---|---|---|
days | Stringified JSON | The days included in a set of working hours. Values include:
|
startMinute | Number | Working hours start time in minutes. Must be within the range of 0 - 1440 , where 0 represents 12:00AM midnight. For example, a 9:00AM start time would be represented as 540 . |
endMinute | Number | Working hours end time in minutes. Follows the same rules as startMinute .For example, 5:00PM is represented as 1020 . |
hs_standard_time_zone
property must be set before you can set working hours.hs_out_of_office_hours
property:
startTimestamp
and endTimestamp
.startTimestamp
of each date range must be later than the previous startTimestamp
.hs_out_of_office_hours
property for a user:
hs_main_user_language_skill
or hs_secondary_user_language_skill
must match an existing language skill. The following JSON array lists all valid options for language skill categories: