def upload_intercom_user(obj_id):
    """Creates or updates single user account on intercom"""
    UserModel = get_user_model()
    intercom_user = False
    instance = UserModel.objects.get(pk=obj_id)
    data = instance.get_intercom_data()

    if not getattr(settings, "SKIP_INTERCOM", False):
        try:
            intercom_user = intercom.users.create(**data)
        except errors.ServiceUnavailableError:
            pass

    if intercom_user:
        UserModel.objects.filter(pk=obj_id).update(
            intercom_last_api_response=intercom_user.to_dict(),
            intercom_api_response_timestamp=make_aware(datetime.now(), pytz.UTC)
        )
Creates or updates single user account on intercom