Configure Gusto as a data pipeline source ​

Set up Gusto as a data pipeline source to extract and sync HR and payroll data, such as companies, employees, jobs, contractors, payrolls, benefits, and time off, from Gusto to your destination.

Use this guide to review the features and prerequisites, connect Gusto as a data pipeline source, configure the pipeline, and understand the supported objects, sync modes, schema handling, sensitive data handling, and known limitations.

Features supported ​

The following features are supported when you use Gusto as a pipeline source:

  • Cloud connectivity: Connect to the Gusto API over HTTPS. An on-prem agent isn't required.
  • Production and sandbox environments: Connect to a Gusto production company or a Gusto demo company. Refer to Connect to Gusto for more information.
  • Object-level selection: Choose from company, employee, contractor, payroll, benefits, and time off objects. Refer to Supported objects for the full list.
  • Full sync: Sync every object in full on each run. Refer to Sync modes for more information.
  • Delete tracking: Mark records you delete in Gusto as deleted in your destination on the next full sync, for objects that have a primary key. Refer to Delete tracking for more information.
  • Custom fields: Sync employee custom field values as rows, so new custom fields sync without schema changes. Refer to Custom fields for more information.
  • Schema drift detection and handling: Detect and apply schema changes automatically with Auto-sync new fields, or keep the schema fixed with Block new fields.
  • Field-level data protection: Hash or replicate sensitive fields as is before the data reaches your destination.
  • Configurable sync frequency: Schedule syncs on a time-based interval or with a cron expression. The minimum supported interval is 15 minutes.

Prerequisites ​

Connecting Gusto as a data pipeline source requires:

Required OAuth scopes ​

Gusto assigns OAuth scopes to each application during app review, so you can't select scopes when you connect. An object fails with a permission error if your Gusto application doesn't have the scope that object needs. Email Gusto at [email protected] to request a scope your application is missing.

The following table lists the read scopes each object requires. An object that appears in more than one row requires every scope listed for it:

Gusto scopeObjects
companies:readCompanies, Locations, Company Custom Fields
employees:readEmployees, Employee Custom Fields, Employee Home Addresses, Employee Work Addresses, Jobs, Compensations, Terminations, Rehires, Employment History, Garnishments, YTD Benefit Amounts from a Different Company, Time Off Activities
compensations:readCompensations, and the pay rate fields on Jobs
employments:readRehires, Employment History
payrolls:readPayrolls, Contractor Payments, Earning Types, Pay Periods
contractors:readContractors
pay_schedules:readPay Schedules, Pay Schedule Assignments
departments:readDepartments
company_admin:readCompany Admins
company_benefits:readCompany Benefits, Employee Benefits
benefits:readSupported Benefits
employee_benefits:readEmployee Benefits, YTD Benefit Amounts from a Different Company
time_off_policies:readTime Off Policies
time_off_requests:readTime Off Requests
employee_time_off_activities:readTime Off Activities

Some objects return partial information if your application doesn't have the required scopes:

  • Company Benefits and Employee Benefits: Gusto hides benefits that contain protected health information (PHI) if your application doesn't have the company_benefits:read:phi and employee_benefits:read:phi scopes.
  • Jobs: Gusto hides pay rate fields if your application doesn't have the compensations:read scope.
  • Companies: Gusto hides primary_signatory fields if your application doesn't have the signatories:read scope, and hides primary_payroll_admin fields if it doesn't have the company_admin:read scope.

SANDBOX DOESN'T ENFORCE SCOPES

The Gusto demo environment doesn't enforce OAuth scopes. A pipeline that syncs every object in Sandbox can fail with a permission error in Production if your application is missing a scope.

Supported connection types ​

Gusto data pipelines support OAuth 2.0 authentication:

  • OAuth 2.0: Authorize Workato using a custom OAuth profile built from a Gusto application that you create. A primary admin or full-access admin must authorize the connection. Refer to Create a Gusto OAuth app and custom OAuth profile for setup steps. System access tokens and API tokens aren't supported.

Connect to Gusto ​

Connect to Gusto

Gusto data pipelines don't support a default Workato-managed app, so you must create a custom OAuth profile before you connect. Complete the following tasks:

Create a Gusto OAuth app and custom OAuth profile ​

Create a Gusto application, then store its client ID and client secret in a Workato custom OAuth profile:

1

Go to Tools > Custom OAuth profiles in Workato and click + New custom profile.

2

Use the Application drop-down menu to select Gusto.

3

Enter a name in the Name field. The name can contain spaces but no special characters, and it must be unique for your account.

4

Click Create new app. Keep the Workato tab open.

5

Sign in to the Gusto Developer Portal in a new tab.

6

Create an application with https://www.workato.com/oauth/callback as the redirect URI. Refer to the Gusto Getting set up guide for steps.

7

Copy the application's client ID and client secret and store them securely.

8

Return to the Workato tab and enter the values in the Client ID and Client secret fields.

9

Click Save. Refer to Custom OAuth profiles for more information.

Connect to Gusto with OAuth 2.0 ​

Complete the following steps to create a Gusto connection that uses your custom OAuth profile:

1

Select Create > Connection or press C twice.

2

Search for Gusto and select it as your app.

3

Enter a name in the Connection name field.

4

Use the Location drop-down menu to select the project where you plan to store the connection.

5

Use the Environment drop-down menu to select the Gusto environment. Select Production to connect to your Gusto company, or select Sandbox to connect to a Gusto demo company.

6

Use the Custom OAuth profile drop-down menu to select the custom OAuth profile you created for Gusto. This field is required.

7

Click Connect.

8

Log in to Gusto as a primary admin or full-access admin in the window that opens to complete the connection. Workato displays a success message when the connection is established.

Configure the pipeline ​

Complete the following steps to configure Gusto as your data pipeline source:

1

Select Create > Data pipeline or press C+I.

2

Enter a name for the data pipeline in the Data pipeline name field.

Data pipeline setupData pipeline setup

3

Use the Location drop-down menu to select the project where you plan to store the data pipeline.

4

Click Start building.

5

Click the Extract new/updated records from source app trigger. This trigger defines how the pipeline retrieves data from Gusto.

Configure the Extract new/updated records from source app triggerConfigure the Extract new/updated records from source app trigger

6

Use the Your Connected Source Apps drop-down menu to select Gusto.

7

Choose the Gusto connection you plan to use for this pipeline. Alternatively, click + New connection to create a new connection.

8

Click Add object to open the Add new objects panel.

9

Search or browse the list of available Gusto objects, select the objects you plan to sync, and click Add.

10

Review and customize the schema for each selected object. The pipeline automatically fetches an object's schema when you select it. This ensures the destination matches the source.

Expand an object to view associated fields. Keep all fields selected to extract all available data, or deselect specific fields to exclude them from data extraction and schema replication.

11

Optional. Configure field-level data protection by expanding an object and choosing how to handle each field:

  • Replicate as is: Data values at the source replicate identically to the destination.
  • Hash: Hash sensitive data values in the field before syncing to your destination.

Workato recommends hashing personally identifiable information (PII) and other sensitive fields. Refer to Sensitive data handling for a list of fields that commonly contain PII.

12

Click Add object again to add more objects. Repeat this step to include additional Gusto objects in your pipeline.

13

Use the Choose how to handle schema changes drop-down menu to select a schema drift handling option:

  • Auto-sync new fields: Automatically detects and syncs new fields added in the source.
  • Block new fields: Keeps the schema fixed after the pipeline starts. You must add new fields manually. This option may cause the destination to fall out of sync if the source schema updates.

Refer to Schema replication and schema drift management for more information.

14

Optional. Enter a value in the Concurrency limit field to cap the number of concurrent operations. Leave the field blank to use the default limit set by Workato. The maximum value for Gusto is 2 because every object in the pipeline shares the Gusto rate limit for the connection. This maximum applies even if the field hint shows a higher limit.

15

Choose either a standard time-based schedule or define a custom cron expression in the Frequency field. This determines how often the pipeline syncs data from Gusto to the destination.

Supported objects ​

Gusto data pipelines sync data from the Gusto App Integrations API. Each object syncs as a separate table in your destination. The following tables list the supported objects, grouped by category:

Company objects ​

The following objects sync company-level settings and records. Locations includes inactive locations. Company Custom Fields contains custom field definitions. Refer to Custom fields for more information.

ObjectSync mode(s)Delete tracking
CompaniesFull syncYes
LocationsFull syncYes (soft)
DepartmentsFull syncYes
Company AdminsFull syncYes
Company Custom FieldsFull syncYes

Employee objects ​

The following objects sync employees and their employment records. Employees includes onboarding, active, and terminated employees. Rehires contains one row for each rehired employee, and employees without a rehire have no row. Employment History contains each employee's hire and termination dates.

ObjectSync mode(s)Delete tracking
EmployeesFull syncYes
Employee Custom FieldsFull syncYes
Employee Home AddressesFull syncYes
Employee Work AddressesFull syncYes
JobsFull syncYes
CompensationsFull syncYes
TerminationsFull syncYes
RehiresFull syncYes
Employment HistoryFull syncNo
GarnishmentsFull syncYes

Contractor objects ​

The following objects sync contractors and the payments made to them. Contractors includes active and inactive contractors. Contractor Payments contains one row for each payment.

ObjectSync mode(s)Delete tracking
ContractorsFull syncYes
Contractor PaymentsFull syncYes

Payroll objects ​

The following objects sync payrolls and pay schedules. Payrolls includes regular, off-cycle, and external payrolls, both processed and unprocessed. It also includes upcoming payrolls up to 3 months ahead. Pay Schedule Assignments contains one row for the company that describes how employees are assigned to pay schedules. Earning Types contains default and custom earning types.

ObjectSync mode(s)Delete tracking
PayrollsFull syncYes
Pay SchedulesFull syncYes
Pay Schedule AssignmentsFull syncYes
Pay PeriodsFull syncNo
Earning TypesFull syncYes

Benefits objects ​

The following objects sync company benefits and employee enrollments. Company Benefits includes inactive benefits. Supported Benefits contains the Gusto catalog of benefit types and is the same for every company. YTD Benefit Amounts from a Different Company contains year-to-date 401(k) deduction and contribution amounts from an employee's previous employer for the current tax year.

ObjectSync mode(s)Delete tracking
Company BenefitsFull syncYes
Employee BenefitsFull syncYes
Supported BenefitsFull syncYes
YTD Benefit Amounts from a Different CompanyFull syncYes

Time off objects ​

The following objects sync time off policies, requests, and balance activity. Time Off Policies includes inactive policies. Time Off Activities contains vacation and sick time activity for each employee.

ObjectSync mode(s)Delete tracking
Time Off PoliciesFull syncYes
Time Off RequestsFull syncYes
Time Off ActivitiesFull syncNo

Sync modes ​

Gusto data pipelines support full sync for all objects. Incremental sync isn't available.

Full sync ​

A full sync reads all available records from Gusto for the selected object on every run and replaces the record set in the destination table. Most Gusto objects don't have a modification timestamp that Workato can use to request only changed records, so every object syncs in full.

Payrolls, Contractor Payments, and Pay Periods read records from the start date you configure. Refer to Payroll history and the start date for more information.

Delete tracking ​

Delete tracking depends on the object:

  • Objects with a primary key: Yes. Workato compares each full sync with the previous run and marks records that no longer appear in Gusto as deleted in the destination.
  • Locations: Yes (soft). Gusto keeps deleted locations and flags them with a native inactive field. Workato reads this field to mark inactive locations as deleted in the destination.
  • Employment History, Pay Periods, and Time Off Activities: No. These objects don't have a primary key, so Workato replaces the table on every sync and can't track individual deleted rows.

Some objects contain status fields that don't indicate deletion. Terminated employees remain in Employees with terminated set to true. Gusto sets active to false on a home address when a newer address replaces it, and both addresses remain in Employee Home Addresses.

Schema and data type handling ​

The following considerations apply to schema and data types when you sync data from Gusto:

Fixed schema ​

Every object has a fixed schema defined by Workato. Employees doesn't include home address fields. Use Employee Home Addresses to sync employee home addresses.

Custom fields ​

Company Custom Fields contains the custom field definitions for your company. Employee Custom Fields contains one row for each custom field value on an employee, keyed by employee_uuid and company_custom_field_id. Join company_custom_field_id to the uuid column in Company Custom Fields to look up a field definition.

Custom fields that you add in Gusto appear as new rows in Employee Custom Fields, not as new columns. Employees without a value for a custom field have no row for that field. Employees also includes the employee's custom field values in the custom_fields column.

Monetary amounts ​

Monetary amounts and rates, such as rate on Compensations and the totals columns on Payrolls, sync as decimal values with up to 6 decimal places. Hours, balances, and accrual rates sync as floating-point numbers.

Some amount columns contain a percentage instead of a currency amount:

  • Garnishments: amount contains a percentage when deduct_as_percentage is true.
  • Employee Benefits: employee_deduction contains a percentage when deduct_as_percentage is true, and company_contribution contains a percentage when contribute_as_percentage is true.

Nested fields ​

Workato flattens most nested objects up to two levels deep into separate columns, such as totals.gross_pay and pay_period.start_date on Payrolls. Arrays and some objects sync as JSON, such as jobs and garnishments on Employees, days on Time Off Requests, location on Jobs, and employees on Pay Schedule Assignments.

Workato syncs JSON fields to the destination's native JSON type, such as VARIANT in Snowflake. Workato serializes JSON fields as strings if the destination doesn't support a native JSON type.

Synthetic columns ​

Workato adds the following columns to destination tables for specific objects:

ColumnTypePurpose
employee_uuidStringID of the employee that the row belongs to. Added to Employee Custom Fields, Employment History, Time Off Activities, and YTD Benefit Amounts from a Different Company. Part of the primary key on Employee Custom Fields.
company_uuidStringPrimary key of Pay Schedule Assignments. ID of the connected company.
tax_yearIntegerAdded to YTD Benefit Amounts from a Different Company. The tax year of the amounts, which is the current year when the sync runs.
earning_type_groupStringAdded to Earning Types. Contains default for Gusto default earning types or custom for earning types your company created.

Sensitive data handling ​

Gusto objects contain personally identifiable information (PII) and compensation data about employees, contractors, and company contacts. The following objects commonly contain sensitive fields:

ObjectSensitive fields
Employeesfirst_name, middle_initial, last_name, preferred_first_name, email, work_email, phone, date_of_birth, hidden_ssn, jobs, garnishments, custom_fields
Employee Home Addressesstreet_1, street_2, city, state, zip
Employee Custom Fieldsvalue
Jobsrate, compensations
Compensationsrate
Garnishmentsamount, description, child_support.case_number, child_support.order_number, child_support.remittance_number
Employee Benefitsemployee_deduction, company_contribution, coverage_amount, retirement_loan_identifier
YTD Benefit Amounts from a Different Companyytd_employee_deduction_amount, ytd_company_contribution_amount
Contractorsfirst_name, middle_initial, last_name, business_name, ein, email, work_email, address.street_1, address.street_2, address.city, address.state, address.zip, hourly_rate
Contractor Paymentswage, bonus, hourly_rate, reimbursement, wage_total, memo
Payrollstotals.gross_pay, totals.net_pay, totals.check_amount, and other totals columns
Companiesein, primary_signatory.first_name, primary_signatory.last_name, primary_signatory.email, primary_signatory.phone, primary_signatory.home_address.street_1, primary_signatory.home_address.street_2, primary_signatory.home_address.city, primary_signatory.home_address.state, primary_signatory.home_address.zip, primary_signatory.home_address.country, primary_payroll_admin.first_name, primary_payroll_admin.last_name, primary_payroll_admin.email, primary_payroll_admin.phone
Company Adminsfirst_name, last_name, email, phone
Time Off Requestsemployee_note, employer_note, employee.full_name

Workato doesn't sync Social Security numbers. hidden_ssn on Employees contains only the masked value Gusto returns, if any.

Use the Hash option in field-level data protection during pipeline configuration to protect PII before it reaches your destination. Refer to the Configure the pipeline steps for more information.

Limitations ​

The following limitations apply when you use Gusto as a data pipeline source:

One company per connection ​

Each Gusto connection syncs data for one company, because Gusto issues a separate access token for each company. Create a separate connection and pipeline for each company you plan to sync, such as each client company of an accounting firm.

A primary admin or full-access admin must authorize the connection. The connection fails with a permission error if it's authorized for a resource other than a company, such as an employee account. Reconnect as a primary admin or full-access admin to resolve the error.

Sync duration for per-employee objects ​

Workato makes at least one API request for each employee to sync Employee Home Addresses, Employee Work Addresses, Rehires, Employment History, and YTD Benefit Amounts from a Different Company. Time Off Activities makes two requests for each employee. Employee Benefits makes at least one request for each company benefit.

Gusto allows 200 API requests per minute for each authorization, and every object in the pipeline shares that limit. A per-employee object takes about 10 minutes to sync for a company with 2,000 employees when no other object is syncing. Time Off Activities takes about 20 minutes. Workato syncs up to two objects at a time, so two per-employee objects that sync together each take about twice as long. Other integrations that use the same Gusto authorization also count toward the limit and slow the sync further.

A pipeline that includes all six per-employee objects needs about 70 minutes of API requests per run for a company with 2,000 employees. Select only the per-employee objects you need, and choose a sync frequency that leaves enough time for each run to complete.

Payroll history and the start date ​

Payrolls, Contractor Payments, and Pay Periods sync records from the date you enter in the When first started, this pipeline should pick up records from field. These objects sync all available history if you leave the field blank.

Workato syncs each payroll based on the start date of its pay period, or its check date if the payroll has no pay period. A payroll whose pay period starts before the pipeline start date doesn't sync, even if the pay period ends after it.

Payroll line items ​

Payrolls contains payroll-level totals. Per-employee payroll line items, such as each employee's earnings, taxes, and deductions on a payroll, aren't synced.

Time off types ​

Time Off Activities syncs vacation and sick time activity only.

Minimum sync frequency ​

The minimum supported sync interval is 15 minutes.

Last updated: