You can build or update an org chart by uploading an org structure file.
To automate imports instead of using the dialog each time, use kongctl or the API.
- In the Konnect sidebar, click Cost Management, then click Org Chart.
- Click Upload org structure.
- Drop your CSV file in the dialog, or choose one.
Konnect checks the file and shows a preview without changing anything.
- Review the summary and fix any errors or warnings:
- The number of users and teams to create, update, deactivate, or delete.
Everyone with at least one direct report gets a team named after them and their ID.
For example, the manager
Marcus Lee with the external_id E003 will have a team named MarcusLee-E003.
- Any errors, listed by row and column.
See Import errors for the most common ones.
- Any warnings.
For example, if a team name is already taken, the new team gets a number after its name, like “Platform (2)”.
- Click Import.
If the org structure changes between the preview and the import, Konnect rejects the file and applies nothing.
kongctl import identity org-chart applies an org structure file against the default Kong Identity directory.
Preview the import without changing anything:
kongctl import identity org-chart \
--pat "$KONNECT_TOKEN" \
--file org-structure.csv \
--dry-run \
--report-output-dir ./import-reports
If the preview looks correct, apply the org chart:
kongctl import identity org-chart \
--pat "$KONNECT_TOKEN" \
--file org-structure.csv \
--execute \
--report-output-dir ./import-reports
Each run writes a JSON report to --report-output-dir, listing the users and teams it created, updated, or deactivated.
Send the file to the import endpoint with dry_run set to true first.
The import targets the default Kong Identity directory.
To find the directory ID, see Directories.
A dry run returns the counts, errors, and warnings without changing anything:
curl -X POST "https://us.api.konghq.com/v2/directories/$DIRECTORY_ID/org-chart/import" \
-H "Authorization: Bearer $KONNECT_TOKEN" \
-F "file=@org.csv" -F "dry_run=true"
If the dry run returns no errors, import the file by sending the same request with dry_run set to false:
curl -X POST "https://us.api.konghq.com/v2/directories/$DIRECTORY_ID/org-chart/import" \
-H "Authorization: Bearer $KONNECT_TOKEN" \
-F "file=@org.csv" -F "dry_run=false"
If you run this on a schedule, have the job stop when counts.users.inactive in the dry run is much higher than usual.
A sudden jump usually means the HRIS export was incomplete.
A re-upload matches the org structure to the file, so re-upload an updated org structure file whenever people or reporting lines change, for example monthly or after a reorganization.
A re-upload applies the following changes:
- Konnect uses
external_id to find each person who is already in the org chart.
If a row’s external_id matches an existing user, the re-upload replaces that person’s email, name, and manager with the values in the file.
If it doesn’t match, the re-upload creates a new user.
- Konnect deactivates users that the file no longer lists.
They’re not deleted.
- A re-upload never reactivates an inactive user, even if the file lists them.
This applies whether you deactivated the user manually or an earlier re-upload deactivated them.
The preview shows a warning for each of these users.
To reactivate a user, click Reactivate in the users table or on the user’s details page.
- Teams and team memberships follow the reporting lines in the file.
Managers get the Team Manager role for their team. If a manager is also an Org Admin, they keep their Org Admin permissions. See AI Management roles.
- A re-upload doesn’t invite anyone to Konnect. To give people access, invite them.
A re-upload deletes a team that has no members in the new file.
A re-upload doesn’t delete a team that only changed.
For example, if a manager’s name changes, the re-upload renames the team and keeps its ID.
Deleting a team doesn’t change your budget list.
Budgets that you set on a deleted team still appear in Cost Management > Budgets.
You can keep them for your records, or delete them manually.
To limit a different team, edit the budget’s scope in Budgets, or create a new budget.
You can’t delete the whole org chart.