We need a script that will attempt to set the HubSpot contact ID for any users in IDM without one. It should also check and sync primary email addresses for all users.
Requirements:
is idempotent (can be run any number of times and will produce the same result -- hubspot VIDs stored in idm & idm IDs stored in hubspot)
checks/updates cross-refs between idm & hubspot regardless of whether or not values are already stored
if syncing for a single user fails, catch, log a warning, and process to next user
Related: https://github.com/LearnersGuild/idm/issues/184.
We need a script that will attempt to set the HubSpot contact ID for any users in IDM without one. It should also check and sync primary email addresses for all users.
Requirements: