Import user principals from a canonical CSV
Changed onImports user principals in bulk from a canonical CSV file. Each row creates one user principal — tagged hris_import, stamped with the row's external_id — plus its email custom identity. The optional cost_center column is stored in the principal's metadata as cost_center; rows matched to existing principals adopt the file's value, and a blank cell clears the stored one, while a file without the column leaves existing cost centers untouched. The file is validated in full before anything is written; the response is a report of counts and per-row errors, never the created rows.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
ID of the directory
Request body multipart/form-data
The canonical CSV file (UTF-8, comma-separated, RFC 4180 quoting)
Validate the file and return the report without applying anything — no principals created, updated, or made inactive. Defaults to true; pass false to apply the import.
Response
Import report — counts, warnings, and per-row errors
Result of an import run.
The run succeeded, but a human should look at these rows.
Changes
- info
the
dry_runrequest property default valuetruewas added
- info
- info
added the optional property
counts/users/adoptedto the response with the status
- info