HubSpot / hubspot-api-python

HubSpot API Python Client Libraries for V3 version of the API
Apache License 2.0
326 stars 104 forks source link

Match user_id with userIdIncludingInactive for Archived Owners #314

Open alecanteroinvgate opened 1 month ago

alecanteroinvgate commented 1 month ago

Hi everyone,

I'm encountering an issue with the user_id attribute when an owner is archived beacuse the user_id is setted as None

Upon investigation, I found that the PublicOwner class doesn't match with the userIdIncludingInactive attribute. This discrepancy seems to have been introduced on March 21, 2024, following a request from a user with a similar issue.

For reference, here is the source: HubSpot Community Post.

I retrieve all owners using this API endpoint: hubspot_client.crm.owners.get_all(archived=True).

Could you please link user_id with userIdIncludingInactive for archived owners?

Thank you!