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:
- A Gusto company and a primary admin or full-access admin account that can authorize the connection. Each connection syncs one company. Refer to One company per connection for more information.
- A Gusto application with the OAuth scopes for the objects you plan to sync. Refer to Required OAuth scopes for the scopes each object needs.
- A custom OAuth profile built from your Gusto application's client ID and client secret. Refer to Create a Gusto OAuth app and custom OAuth profile for setup steps.
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 scope | Objects |
|---|---|
companies:read | Companies, Locations, Company Custom Fields |
employees:read | Employees, 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:read | Compensations, and the pay rate fields on Jobs |
employments:read | Rehires, Employment History |
payrolls:read | Payrolls, Contractor Payments, Earning Types, Pay Periods |
contractors:read | Contractors |
pay_schedules:read | Pay Schedules, Pay Schedule Assignments |
departments:read | Departments |
company_admin:read | Company Admins |
company_benefits:read | Company Benefits, Employee Benefits |
benefits:read | Supported Benefits |
employee_benefits:read | Employee Benefits, YTD Benefit Amounts from a Different Company |
time_off_policies:read | Time Off Policies |
time_off_requests:read | Time Off Requests |
employee_time_off_activities:read | Time Off Activities |
Some objects return partial information if your application doesn't have the required scopes:
Company BenefitsandEmployee Benefits: Gusto hides benefits that contain protected health information (PHI) if your application doesn't have thecompany_benefits:read:phiandemployee_benefits:read:phiscopes.Jobs: Gusto hides pay rate fields if your application doesn't have thecompensations:readscope.Companies: Gusto hidesprimary_signatoryfields if your application doesn't have thesignatories:readscope, and hidesprimary_payroll_adminfields if it doesn't have thecompany_admin:readscope.
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 to store your Gusto application's client ID and client secret in Workato.
- Connect to Gusto with OAuth 2.0 using the custom OAuth profile you created.
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:
Go to Tools > Custom OAuth profiles in Workato and click + New custom profile.
Use the Application drop-down menu to select Gusto.
Enter a name in the Name field. The name can contain spaces but no special characters, and it must be unique for your account.
Click Create new app. Keep the Workato tab open.
Sign in to the Gusto Developer Portal in a new tab.
Create an application with https://www.workato.com/oauth/callback as the redirect URI. Refer to the Gusto Getting set up guide for steps.
Copy the application's client ID and client secret and store them securely.
Return to the Workato tab and enter the values in the Client ID and Client secret fields.
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:
Select Create > Connection or press C twice.
Search for Gusto and select it as your app.
Enter a name in the Connection name field.
Use the Location drop-down menu to select the project where you plan to store the connection.
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.
Use the Custom OAuth profile drop-down menu to select the custom OAuth profile you created for Gusto. This field is required.
Click Connect.
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:
Select Create > Data pipeline or press C+I.
Enter a name for the data pipeline in the Data pipeline name field.
Data pipeline setup
Use the Location drop-down menu to select the project where you plan to store the data pipeline.
Click Start building.
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 trigger
Use the Your Connected Source Apps drop-down menu to select Gusto.
Choose the Gusto connection you plan to use for this pipeline. Alternatively, click + New connection to create a new connection.
Click Add object to open the Add new objects panel.
Search or browse the list of available Gusto objects, select the objects you plan to sync, and click Add.
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.
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.
Click Add object again to add more objects. Repeat this step to include additional Gusto objects in your pipeline.
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.
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.
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.
| Object | Sync mode(s) | Delete tracking |
|---|---|---|
Companies | Full sync | Yes |
Locations | Full sync | Yes (soft) |
Departments | Full sync | Yes |
Company Admins | Full sync | Yes |
Company Custom Fields | Full sync | Yes |
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.
| Object | Sync mode(s) | Delete tracking |
|---|---|---|
Employees | Full sync | Yes |
Employee Custom Fields | Full sync | Yes |
Employee Home Addresses | Full sync | Yes |
Employee Work Addresses | Full sync | Yes |
Jobs | Full sync | Yes |
Compensations | Full sync | Yes |
Terminations | Full sync | Yes |
Rehires | Full sync | Yes |
Employment History | Full sync | No |
Garnishments | Full sync | Yes |
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.
| Object | Sync mode(s) | Delete tracking |
|---|---|---|
Contractors | Full sync | Yes |
Contractor Payments | Full sync | Yes |
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.
| Object | Sync mode(s) | Delete tracking |
|---|---|---|
Payrolls | Full sync | Yes |
Pay Schedules | Full sync | Yes |
Pay Schedule Assignments | Full sync | Yes |
Pay Periods | Full sync | No |
Earning Types | Full sync | Yes |
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.
| Object | Sync mode(s) | Delete tracking |
|---|---|---|
Company Benefits | Full sync | Yes |
Employee Benefits | Full sync | Yes |
Supported Benefits | Full sync | Yes |
YTD Benefit Amounts from a Different Company | Full sync | Yes |
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.
| Object | Sync mode(s) | Delete tracking |
|---|---|---|
Time Off Policies | Full sync | Yes |
Time Off Requests | Full sync | Yes |
Time Off Activities | Full sync | No |
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 nativeinactivefield. Workato reads this field to mark inactive locations as deleted in the destination.Employment History,Pay Periods, andTime 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:amountcontains a percentage whendeduct_as_percentageistrue.Employee Benefits:employee_deductioncontains a percentage whendeduct_as_percentageistrue, andcompany_contributioncontains a percentage whencontribute_as_percentageistrue.
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:
| Column | Type | Purpose |
|---|---|---|
employee_uuid | String | ID 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_uuid | String | Primary key of Pay Schedule Assignments. ID of the connected company. |
tax_year | Integer | Added 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_group | String | Added 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:
| Object | Sensitive fields |
|---|---|
Employees | first_name, middle_initial, last_name, preferred_first_name, email, work_email, phone, date_of_birth, hidden_ssn, jobs, garnishments, custom_fields |
Employee Home Addresses | street_1, street_2, city, state, zip |
Employee Custom Fields | value |
Jobs | rate, compensations |
Compensations | rate |
Garnishments | amount, description, child_support.case_number, child_support.order_number, child_support.remittance_number |
Employee Benefits | employee_deduction, company_contribution, coverage_amount, retirement_loan_identifier |
YTD Benefit Amounts from a Different Company | ytd_employee_deduction_amount, ytd_company_contribution_amount |
Contractors | first_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 Payments | wage, bonus, hourly_rate, reimbursement, wage_total, memo |
Payrolls | totals.gross_pay, totals.net_pay, totals.check_amount, and other totals columns |
Companies | ein, 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 Admins | first_name, last_name, email, phone |
Time Off Requests | employee_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: