Personnel Register
The personnel command group works with the organization’s Personnel Register:
everyone in scope for the compliance program, their governance records
(security training, policy acknowledgements, background checks, confidentiality
agreements), and the access crosswalk that records which systems and access
surfaces (Entra, GitHub, VPN, and so on) each person can reach.
The register is organization-wide. These commands ignore the active
system/framework context, and they need an org-wide API token with the
personnel scope (or admin). The register holds personal data, so only
organization owners and admins can grant that scope. Wherever a command takes a
person, it accepts the person’s id or their work email.
Keep the register to what is needed to review a person’s impact on the organization. Evaluations, personal details, and background check results stay in your HR system; a governance record holds a date and where the proof lives.
These commands require a platform deployment with Personnel Register support. Older deployments may return an unavailable-endpoint error.
People
pretorin personnel list # current staff (--include-departed for everyone)
pretorin personnel list --type contractor --team Engineering
pretorin personnel show jordan@example.com
pretorin personnel add --name "Jordan Rivera" --email jordan@example.com \
--role "Platform Engineer" --team Engineering --manager sam@example.com --start 2026-03-03
pretorin personnel update jordan@example.com --team Platform
pretorin personnel update board@example.com --out-of-scope "Board member with no system access"
pretorin personnel depart jordan@example.com --end 2026-11-30
pretorin personnel history jordan@example.com
Record departures with depart (or --status departed), not delete: a
departed person keeps an end date and stays in populations for the periods they
worked. delete --yes is only for a record entered by mistake.
Syncing from a source of record
The platform never connects to an HR system or identity provider. Read the
source yourself (or have an agent do it) and bring the register in line with
sync. It is a dry run unless you pass --apply.
pretorin personnel sync people.csv # dry run: shows the plan
pretorin personnel sync people.csv --apply
pretorin personnel sync okta.json --source cli:okta --apply --retire-missing
- A
.csvuses the same columns as the web app’s import:name,work_email,external_id,person_type,role_title,team,manager_email,start_date,end_date,status,in_scope. Bad rows are reported by line and skipped for ordinary sync. With--retire-missing, any invalid row refuses the entire batch in both dry-run and apply modes; fix the CSV before treating it as a complete roster. - A
.jsonfile is a list of people (or{"people": [...]}). Each entry may carryaccess: the person’s complete access in that source, as objects withtarget_type(systemorsurface),system_idorsurface,access_level, andprivileged. Grants missing from it are marked removed. Leaveaccessout to leave a person’s access alone. - People match on
(source, external_id), else work email. Only the fields you send are compared, so a source that knows nothing about teams does not clear them. --retire-missingmarks people from the same--sourcewho are absent from the file as departed and removes their access. People from another source, or entered by hand, are never touched.
Access
pretorin personnel access add jordan@example.com --surface GitHub --level Owner --privileged
pretorin personnel access add jordan@example.com --system-id <system_id> --level Administrator
pretorin personnel access list --surface GitHub # who can reach GitHub
pretorin personnel access list --system-id <system_id> --privileged
pretorin personnel access remove jordan@example.com <grant_id> --on 2026-11-30
Removing access records the date and keeps the grant, so an access review can see when it ended.
Governance records
pretorin personnel governance add jordan@example.com --kind security_training \
--completed-on 2026-10-01 --label "Annual security awareness 2026" --reference "KnowBe4 report Q4"
pretorin personnel governance add jordan@example.com --kind background_check --completed-on 2026-02-20
pretorin personnel governance remove jordan@example.com <record_id>
Security training without --expires-on counts as current for one year.
Background checks, acknowledgements, and agreements without an expiry stay
current.
Reports for auditors
pretorin personnel summary # headcount and governance counts, no names
pretorin personnel population --start 2026-01-01 --end 2026-12-31
pretorin personnel population --start 2026-01-01 --end 2026-12-31 --csv population.csv
pretorin personnel population --start 2026-01-01 --end 2026-12-31 --system-id <system_id> --team Platform
--system-id narrows the population to people who held access to that system
at any point in the period (from the access crosswalk); --team to one team.
Both are recorded in the CSV’s # header.
Pretorin accounts and roles
pretorin personnel accounts # every account, its org role, and its register match
pretorin personnel accounts --findings # only the gaps
Pretorin is itself an access surface. accounts matches each active account
in the organization, with its role (owner, admin, member, viewer, auditor), to
a register entry by linked account or work email, and flags departed people
who still have an account, accounts with no register entry, and out-of-scope
people with an account. Roles are changed in the organization’s settings.
The population is everyone who held a position at any point in the period, with
joiners and leavers flagged. The CSV starts with # lines recording the period,
filters, who generated it, and the counts, and the platform logs each export.
That is the completeness record auditors ask for alongside the list.
Battle Drill
Onboarding and offboarding runs can name the person they are about:
pretorin drill start employee-offboarding --person jordan@example.com
The run’s subject defaults to their name, and the run shows on their page in the web app.