UKG Pro (Apps step)
UKG Pro
Lists UKG Pro (UltiPro) employees' demographic, employment and compensation details, and reads one person's details, through UKG Pro's personnel REST API.
Use it to bring UKG Pro's people data into the plant: a current roster with supervisors and departments for a shift report, new hires for badge and training setup, or pay rates for labor costing.
Beta. This step has not yet been checked against a live UKG Pro account, so treat its first runs as a test, and tell us if an operation does not answer as described.
Find it in the workflow editor's palette under Apps. See Apps steps for what every Apps step has in common.
Set it up
- In UKG Pro, have your admin open Menu › System Configuration › Security › Web Services and add a service account user with View access to the Personnel Integration and Employee Compensation Details web services.
- On the same Web Services page, note the Customer API Key and the service host (such as service4.ultipro.com) shown for your company.
- In DataMagik, open Script Engine › Credentials and add a "Basic Auth (Username/Password)" credential with the service account's user name and password.
- Add the service host to Allowed Domains in the workflow's Script settings.
Credential: A Basic credential with a UKG Pro web services (service account) user's name and password.
Hosts it calls: *.ultipro.com
Connection
| Field | Required | What to put |
|---|---|---|
| Service host | Yes | The host UKG Pro's Web Services page shows for your company, such as service4.ultipro.com, without https://. For example service4.ultipro.com. |
| Customer API key | Yes | Your company's Customer API Key from UKG Pro's Web Services page; it is sent as the US-Customer-Api-Key header on every request. For example ABC12. |
Operations
| Operation | What it does |
|---|---|
| Employee › List demographics | Lists employees' demographic details (name, contact, address), 100 per request, following every page up to the step's page limit. |
| Employee › List employment details | Lists employees' employment details (job, department, supervisor, hire and termination dates), 100 per request, following every page up to the step's page limit. |
| Employee › List compensation details | Lists employees' pay details (hourly rate, annual salary, pay group), 100 per request, following every page up to the step's page limit. |
| Person › Get details | Reads one employee's person details: name, contact, address and personal fields. |
Employee › List demographics
Lists employees' demographic details (name, contact, address), 100 per request, following every page up to the step's page limit.
Calls GET /personnel/v1/employee-demographic-details. Follows the pages, up to Most pages (10 unless you change it).
| Field | Required | What to put |
|---|---|---|
| Company ID | No | Only employees of this UKG Pro company (its component company id). Leave empty for all companies. For example J9A6Y. |
| Last name | No | Only employees with this last name. Leave empty for all. |
What comes out: One item per employee: {{ $json.employeeId }}, {{ $json.companyId }}, {{ $json.firstName }}, {{ $json.lastName }}, {{ $json.preferredName }}, {{ $json.emailAddress }}, {{ $json.addressCity }}, {{ $json.addressState }} and the other demographic fields.
Example: List every employee's demographics to refresh the names and emails in the plant's operator lookup table.
Employee › List employment details
Lists employees' employment details (job, department, supervisor, hire and termination dates), 100 per request, following every page up to the step's page limit.
Calls GET /personnel/v1/employment-details. Follows the pages, up to Most pages (10 unless you change it).
| Field | Required | What to put |
|---|---|---|
| Company ID | No | Only employees of this UKG Pro company (its component company id). Leave empty for all companies. For example J9A6Y. |
| Employee status | No | Only employees with this status code: A active, L on leave, T terminated. Leave empty for all. For example A. |
What comes out: One item per employee: {{ $json.employeeID }}, {{ $json.employeeNumber }}, {{ $json.companyID }}, {{ $json.jobTitle }}, {{ $json.primaryJobCode }}, {{ $json.orgLevel1Code }}, {{ $json.primaryWorkLocationCode }}, {{ $json.supervisorID }}, {{ $json.supervisorFirstName }}, {{ $json.supervisorLastName }}, {{ $json.lastHireDate }}, {{ $json.dateOfTermination }} and {{ $json.employeeStatusCode }}.
Example: Employee status A lists the active workforce with each person's supervisor and work location for the plant's shift roster.
Employee › List compensation details
Lists employees' pay details (hourly rate, annual salary, pay group), 100 per request, following every page up to the step's page limit.
Calls GET /personnel/v1/compensation-details. Follows the pages, up to Most pages (10 unless you change it).
What comes out: One item per employee: {{ $json.employeeID }}, {{ $json.companyID }}, {{ $json.hourlyPayRate }}, {{ $json.annualSalary }}, {{ $json.salaryOrHourlyCode }}, {{ $json.payGroupCode }}, {{ $json.primaryJobCode }} and {{ $json.weeklyHours }}.
Example: List the compensation details and join them to the week's labor hours by employee to cost each production line.
Person › Get details
Reads one employee's person details: name, contact, address and personal fields.
Calls GET /personnel/v1/person-details/{employeeId}.
| Field | Required | What to put |
|---|---|---|
| Employee ID | Yes | The employee's UKG employee id (employeeId on the lists), not their employee number. For example BF4ID3000020. Choose from list beside the field fetches the choices from your account. |
What comes out: One item: {{ $json.employeeId }}, {{ $json.companyId }}, {{ $json.firstName }}, {{ $json.lastName }}, {{ $json.preferredName }}, {{ $json.emailAddress }}, {{ $json.homePhone }}, {{ $json.addressLine1 }}, {{ $json.addressCity }} and the other person fields.
Example: For each new employee from the trigger, read {{ $json.employeeId }}'s details and email their supervisor the person's preferred name and start date.
Trigger: UKG Pro: New Items
Under Triggers in the palette. It looks at UKG Pro on a schedule (every 15 minutes unless you change Look every) with one of these operations: Employee › List demographics; Employee › List employment details; Employee › List compensation details, and starts the workflow with the items it has not seen on an earlier look, one item each. Saving the workflow sets up the schedule.
- New means: not seen before, by the item's id (or the field you name in Item field), or newer than the newest one last time, by a date or increasing number.
- On the first run it only remembers what is there, unless you choose Start with everything.
- Test runs show what would be new without remembering it. It remembers the last 5000 ids, so filter the list to keep it shorter than that.
Example
A UKG Pro: New Items trigger on List employee demographics starts the workflow for each new employee; UKG Pro › Person details reads their name and email, and a Database step adds them to the training matrix.
Tips
- Employees are told apart by employeeId (a short code such as BF4ID3000020) together with companyId; employment and compensation details spell it employeeID.
- Lists accept UKG's filters as query parameters; add any the fields do not offer under More query parameters, such as employeeStatusCode = A or dateTimeChanged = >2026-11-01 for records changed since a date.
- The service account only sees the web services your admin gave it; a 401 or 403 usually means a missing View permission, not a wrong password.
- The lists read 100 employees per request; a large company's roster takes several requests, up to the step's page limit.
Settings every Apps step has
- More query parameters: any query parameter the fields do not offer, sent as is.
- More body fields: a JSON object merged into the request body; nested objects merge, other values replace.
- Most requests per second: spaces the calls out for rate limits. A "too many requests" (429) answer is retried after the wait the API asks for.
- Most pages: for operations that follow pages, the most pages to fetch (10 unless you change it, up to 100). The run warns when it stops with more to get.
- Fail on a non-2xx response: on by default. Turn it off to handle errors yourself.
UKG Pro's own API documentation: https://developer.ukg.com/hcm/reference