<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: User/Owner IDs don't align in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/User-Owner-IDs-don-t-align/m-p/1131099#M81360</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/676933"&gt;@JP98&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I agree, the concept of User ID / Owner ID / CRM Record ID can be confusing. Here's how I understand it:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;We're working with 2 distinct HubSpot "Object Types" (albeit "special" Object Types that don't always operate in the same way as the standard CRM Object Types):
&lt;UL&gt;
&lt;LI&gt;Owner&lt;/LI&gt;
&lt;LI&gt;User&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Relevant to your described use case, a User "record" has the following ID properties:
&lt;OL&gt;
&lt;LI&gt;"hs_object_id" (also returned as "id" by the API, outside the "properties" object)&lt;/LI&gt;
&lt;LI&gt;"hubspot_owner_id"&lt;/LI&gt;
&lt;LI&gt;"hs_internal_user_id"&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;To demonstrate the relationship between these IDs, you might like to consider the following HubSpot API responses, representing the same "person" who accesses the given HubSpot portal:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;// GET /crm/v3/owners
{
    "results": [
        {
            "id": "209582270", // matches "hubspot_owner_id" in subsequent example
            "email": "example@gmail.com",
            "type": "PERSON",
            "firstName": "Example",
            "lastName": "Owner",
            "userId": 9887783, // matches "hs_internal_user_id" in subsequent example
            "userIdIncludingInactive": 9887783,
            "createdAt": "2021-12-15T12:27:06.833Z",
            "updatedAt": "2022-10-14T04:26:29.590Z",
            "archived": false,
            "teams": [
                {
                    "id": "140468592",
                    "name": "Test Team 1",
                    "primary": true
                }
            ]
        }
    ]
}

// GET /crm/v3/objects/users?properties=hubspot_owner_id,hs_internal_user_id
{
    "results": [
        {
            "id": "60177263045", // this is the User's CRM Record ID (i.e. "hs_object_id")
            "properties": {
                "hs_createdate": "2021-12-15T12:27:01.825Z",
                "hs_internal_user_id": "9887783", // matches "userId" in the previous example
                "hs_lastmodifieddate": "2024-07-16T04:51:26.719Z",
                "hs_object_id": "60177263045",
                "hubspot_owner_id": "209582270" // matches "id" in the previous example
            },
            "createdAt": "2021-12-15T12:27:01.825Z",
            "updatedAt": "2024-07-16T04:51:26.719Z",
            "archived": false
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;I hope this proves helpful. Please let me know if you have any follow-up questions.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Apr 2025 21:59:33 GMT</pubDate>
    <dc:creator>zach_threadint</dc:creator>
    <dc:date>2025-04-02T21:59:33Z</dc:date>
    <item>
      <title>User/Owner IDs don't align</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/User-Owner-IDs-don-t-align/m-p/1130558#M81322</link>
      <description>&lt;P&gt;&lt;SPAN&gt;When we get a user from the POST /crm/v3/objects/users/search endpoint, it has an ID 1 of [ID 1 here]. When I GET /crm/v3/owners, it has an ID 2 of [ID 2 here] (makes sense that it's different, one is a user and one is an owner), but the userId on the exact same owner/person is [ID 3 here]. Doesn't match the ID 1 [ID 1 here] at all. How does this work?????&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 08:44:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/User-Owner-IDs-don-t-align/m-p/1130558#M81322</guid>
      <dc:creator>JP98</dc:creator>
      <dc:date>2025-04-02T08:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: User/Owner IDs don't align</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/User-Owner-IDs-don-t-align/m-p/1130703#M81328</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/676933"&gt;@JP98&lt;/a&gt;&lt;/SPAN&gt; and welcome, we are so glad to have you here! &lt;span class="lia-unicode-emoji" title=":hugging_face:"&gt;🤗&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for asking the HubSpot Community!&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;For information, the HubSpot Community is a public space. I have therefore edited your content for security &amp;amp; confidential reasons.&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;1. Which endpoint did you use to have the ID 3, please?&lt;BR /&gt;2. Which information are you trying to see?&lt;BR /&gt;&lt;BR /&gt;The more info, screenshots (without sensitive/confidential information), and details you can provide, the better the Community can assist.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I'd love to put you in touch with our Top Experts: Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/601366"&gt;@sylvain_tirreau&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;&lt;/SPAN&gt; and &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/857649"&gt;@Bhupendra_Kumar&lt;/a&gt;&lt;/SPAN&gt; do you have suggestions to help &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/676933"&gt;@JP98&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;Have a beautiful day and thanks so much in advance for your valuable contributions! &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 08:51:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/User-Owner-IDs-don-t-align/m-p/1130703#M81328</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2025-04-02T08:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: User/Owner IDs don't align</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/User-Owner-IDs-don-t-align/m-p/1130710#M81329</link>
      <description>&lt;P&gt;The userId that is ID 3 is a property on the owner that comes in the same response as ID 2.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 09:05:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/User-Owner-IDs-don-t-align/m-p/1130710#M81329</guid>
      <dc:creator>JP98</dc:creator>
      <dc:date>2025-04-02T09:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: User/Owner IDs don't align</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/User-Owner-IDs-don-t-align/m-p/1131099#M81360</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/676933"&gt;@JP98&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I agree, the concept of User ID / Owner ID / CRM Record ID can be confusing. Here's how I understand it:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;We're working with 2 distinct HubSpot "Object Types" (albeit "special" Object Types that don't always operate in the same way as the standard CRM Object Types):
&lt;UL&gt;
&lt;LI&gt;Owner&lt;/LI&gt;
&lt;LI&gt;User&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Relevant to your described use case, a User "record" has the following ID properties:
&lt;OL&gt;
&lt;LI&gt;"hs_object_id" (also returned as "id" by the API, outside the "properties" object)&lt;/LI&gt;
&lt;LI&gt;"hubspot_owner_id"&lt;/LI&gt;
&lt;LI&gt;"hs_internal_user_id"&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;To demonstrate the relationship between these IDs, you might like to consider the following HubSpot API responses, representing the same "person" who accesses the given HubSpot portal:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;// GET /crm/v3/owners
{
    "results": [
        {
            "id": "209582270", // matches "hubspot_owner_id" in subsequent example
            "email": "example@gmail.com",
            "type": "PERSON",
            "firstName": "Example",
            "lastName": "Owner",
            "userId": 9887783, // matches "hs_internal_user_id" in subsequent example
            "userIdIncludingInactive": 9887783,
            "createdAt": "2021-12-15T12:27:06.833Z",
            "updatedAt": "2022-10-14T04:26:29.590Z",
            "archived": false,
            "teams": [
                {
                    "id": "140468592",
                    "name": "Test Team 1",
                    "primary": true
                }
            ]
        }
    ]
}

// GET /crm/v3/objects/users?properties=hubspot_owner_id,hs_internal_user_id
{
    "results": [
        {
            "id": "60177263045", // this is the User's CRM Record ID (i.e. "hs_object_id")
            "properties": {
                "hs_createdate": "2021-12-15T12:27:01.825Z",
                "hs_internal_user_id": "9887783", // matches "userId" in the previous example
                "hs_lastmodifieddate": "2024-07-16T04:51:26.719Z",
                "hs_object_id": "60177263045",
                "hubspot_owner_id": "209582270" // matches "id" in the previous example
            },
            "createdAt": "2021-12-15T12:27:01.825Z",
            "updatedAt": "2024-07-16T04:51:26.719Z",
            "archived": false
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;I hope this proves helpful. Please let me know if you have any follow-up questions.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 21:59:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/User-Owner-IDs-don-t-align/m-p/1131099#M81360</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2025-04-02T21:59:33Z</dc:date>
    </item>
  </channel>
</rss>

