Skip to content

Definition transfer

GenieClient exports and imports the authorization RBAC, workflow and wizard definitions as XML — the export → verify → merge → import loop:

  1. Export each subsystem’s live definition to a folder: rbac.xml, <Name>.workflow.xml, <Name>.wizard.xml.
  2. Verify with --against <models-dir>: RBAC uses a semantic diff (it ignores ordering and reports real resource/grant changes); workflows and wizards are compared as canonical XML against your source-of-truth files.
  3. Merge by hand, then import back.

All six commands talk to a deployment and accept the common options (-e, -a, -c, -v).

Export roles, permissions and grants to <out>/rbac.xml.

GenieClient export-rbac [-o <dir>] [--against <path>]
Parameter Type Required Default Description
-o, --out path no current folder Folder to write rbac.xml to.
--against path no — Compare the export with your source-of-truth RBAC: either a models folder containing an *.rbac.xml, or the file itself. Differences are listed; the check fails if there are any.
Terminal window
GenieClient export-rbac -o ./out
GenieClient export-rbac -o ./out --against ./models
GenieClient export-rbac --against ./models/workpilot.rbac.xml -e https://prod.example.com

Import an rbac.xml. By default this is a full sync using the server’s prune mode: roles and resources missing from the file are deleted. The seeded System, Admin and AccessManager roles and roles still assigned to users are never deleted.

GenieClient import-rbac <file> [--no-prune]
Parameter Type Required Default Description
<file> (positional) path yes — The rbac.xml to import.
--no-prune flag no off Add and update only — never delete roles or permissions that are not in the file.
Terminal window
GenieClient import-rbac ./out/rbac.xml
GenieClient import-rbac ./models/workpilot.rbac.xml --no-prune

Export workflow definitions, one <Name>.workflow.xml per workflow.

GenieClient export-workflows [-o <dir>] [-n <name>] [--against <dir>]
Parameter Type Required Default Description
-o, --out path no current folder Folder to write the files to.
-n, --name text (workflow name) no all Export only this workflow.
--against path no — Models folder to compare with; each export is diffed against the matching *.workflow.xml found there.
Terminal window
GenieClient export-workflows -o ./out
GenieClient export-workflows -o ./out -n Approval --against ./models

Import one workflow file. Creates the definition if it does not exist, then saves the XML.

GenieClient import-workflow <file>
Parameter Type Required Description
<file> (positional) path yes The *.workflow.xml to import.
Terminal window
GenieClient import-workflow ./models/workflows/Approval.workflow.xml

Export wizard definitions, one <Name>.wizard.xml per wizard.

GenieClient export-wizards [-o <dir>] [-n <name>] [--against <dir>]
Parameter Type Required Default Description
-o, --out path no current folder Folder to write the files to.
-n, --name text (wizard name) no all Export only this wizard.
--against path no — Models folder to compare with; each export is diffed against the matching *.wizard.xml found there.
Terminal window
GenieClient export-wizards -o ./out
GenieClient export-wizards -o ./out -n Onboarding --against ./models

Import one wizard file. Reuses an existing wizard with the same name, otherwise creates one.

GenieClient import-wizard <file>
Parameter Type Required Description
<file> (positional) path yes The *.wizard.xml to import.
Terminal window
GenieClient import-wizard ./models/wizards/Onboarding.wizard.xml

Importing cannot rename a wizard that already has submissions: the name fixes its response table, so the save is rejected — see Storage and indexes. Response-table changes an import implies (a new Indexed field, a new index) are applied in the background, so give provisioning a moment before submitting through the imported wizard.

RBAC has real file endpoints. Workflows and wizards have none, so GenieClient drives their JSON designer APIs (workflow/definitions[/{id}/save], wizard/list, wizard/{key}, wizard/save) to read each definition’s verbatim XML and write it back.