Skip to content
English
  • There are no suggestions because the search field is empty.

DocMergy: How to get Data from Users

The get_user() function allows you to dynamically retrieve profile and system information for a specific HubSpot user so you can merge their details directly into your documents.

How it Works

Unlike other functions, {{get_user()}} does not use keyword arguments. Instead, it requires only a single parameter: the user's email address or their HubSpot Owner ID.

Syntax Examples:

  • By Email: {{get_user("example@integrationglue.com")}}
  • By Owner Property: {{get_user(object.hs_owner_id)}}
  • By Owner ID: {{get_user("12345689")}}

Outputting Specific User Properties

To display a specific piece of data (such as a name or phone number), append a period (.) followed by the property's internal name to the end of the function.

Example usage:

If you want to merge the user's first name into your document, format your token like this:

{{get_user("example@integrationglue.com").hs_given_name}}

Output: Example

Available User Properties

You can append any of the following default HubSpot properties to the {{get_user()}} function. (Note: If a user's HubSpot profile does not contain data for a specific field, it will output as blank).

Commonly Used Profile Properties

  • hs_given_name (First Name)
  • hs_family_name (Last Name)
  • hs_searchable_calculated_name (Full Name)
  • hs_email (Email Address)
  • hs_main_phone (Main Phone Number)
  • hs_additional_phone (Additional Phone)
  • hs_job_title (Job Title)
  • hs_language (Primary Language)
  • hs_timezone_auto_update_enabled
  • hs_standard_time_zone

System & Access Properties

  • hs_access (e.g., super_admin)
  • hs_assigned_seats
  • hs_assigned_permission_sets
  • hs_availability_status (e.g., available, away)
  • hs_user_type
  • hs_is_out_of_office
  • hs_is_in_working_hours
  • hs_working_hours
  • hs_out_of_office_hours
  • hs_manager
  • hs_connected_email_status
  • hs_calendar_connection_status
  • hs_calendar_sync_enabled

ID & System Tracking Properties

  • hubspot_owner_id
  • hs_internal_user_id
  • hs_object_id
  • hubspot_team_id
  • hs_all_accessible_team_ids
  • hs_all_assigned_business_unit_ids
  • hs_all_owner_ids
  • hs_all_team_ids
  • hs_direct_teams
  • hs_owning_teams
  • hs_shared_team_ids
  • hs_shared_user_ids
  • hs_user_all_accessible_teams
  • hs_user_assigned_primary_team
  • hs_user_direct_teams
  • hs_user_secondary_teams
  • hs_created_by_user_id
  • hs_updated_by_user_id
  • hs_createdate
  • hs_lastmodifieddate
  • hubspot_owner_assigneddate
  • hs_last_activity_time
  • hs_last_password_change
  • hs_last_property_updated_time
  • hs_invite_accepted_time
  • hs_invite_email_status
  • hs_invite_status

Account State Properties

  • hs_deactivated
  • hs_hidden (and hs_is_hidden)
  • hs_is_bot
  • hs_is_managed_agent
  • hs_is_partner_user
  • hs_read_only