Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Update hubspot users and owners configurations (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
earmenda authored Aug 25, 2022
1 parent 565a212 commit dfab87f
Show file tree
Hide file tree
Showing 8 changed files with 346 additions and 675 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ The types of changes are:

## [Unreleased](https://github.com/ethyca/fidesops/compare/1.7.1...main)

### Added
* Adds users and owners configuration for Hubspot connector [#1091](https://github.com/ethyca/fidesops/pull/1091)

## [1.7.1](https://github.com/ethyca/fidesops/compare/1.7.0...1.7.1)

### Added
Expand Down Expand Up @@ -50,7 +53,7 @@ The types of changes are:
* Fix FIDESOPS__ROOT_USER__ANALYTICS_ID generation when env var is set [#1113](https://github.com/ethyca/fidesops/pull/1113)
* Set localhost to None for non-endpoint events [#1130](https://github.com/ethyca/fidesops/pull/1130)
* Fixed docs build in CI [#1138](https://github.com/ethyca/fidesops/pull/1138)
* Added future annotatioins to privacy_request.py for backwards compatibility [#1136](https://github.com/ethyca/fidesops/pull/1136)
* Added future annotations to privacy_request.py for backwards compatibility [#1136](https://github.com/ethyca/fidesops/pull/1136)

### Changed

Expand Down
57 changes: 43 additions & 14 deletions data/saas/config/hubspot_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,19 @@ saas_config:
connector_params:
- name: domain
default_value: api.hubapi.com
- name: hapikey
- name: private_app_token

client_config:
protocol: https
host: <domain>
authentication:
strategy: query_param
strategy: bearer
configuration:
name: hapikey
value: <hapikey>
token: <private_app_token>

test_request:
method: GET
path: /companies/v2/companies/paged
path: /settings/v3/users

endpoints:
- name: contacts
Expand All @@ -45,10 +44,7 @@ saas_config:
param_values:
- name: email
identity: email
postprocessors:
- strategy: unwrap
configuration:
data_path: results
data_path: results
pagination:
strategy: link
configuration:
Expand All @@ -73,17 +69,18 @@ saas_config:
path: /crm/v3/owners
method: GET
query_params:
- name: email
value: <email>
- name: limit
value: 100
param_values:
- name: email
- name: placeholder
identity: email
data_path: results
postprocessors:
- strategy: unwrap
- strategy: filter
configuration:
data_path: results
field: email
value:
identity: email
pagination:
strategy: link
configuration:
Expand Down Expand Up @@ -121,3 +118,35 @@ saas_config:
configuration:
field: status
value: SUBSCRIBED
- name: users
requests:
read:
path: /settings/v3/users/
method: GET
query_params:
- name: limit
value: 100
param_values:
- name: placeholder
identity: email
data_path: results
postprocessors:
- strategy: filter
configuration:
field: email
value:
identity: email
pagination:
strategy: link
configuration:
source: body
path: paging.next.link
delete:
path: /settings/v3/users/<userId>
method: DELETE
param_values:
- name: userId
references:
- dataset: <instance_fides_key>
field: users.id
direction: from
Loading

0 comments on commit dfab87f

Please sign in to comment.