fleet/docs/solutions/api-scripts
kitzy efa9cf9bdf
Add script to sync Jamf user assignments to Fleet device mapping (#42177)
Adds `docs/solutions/api-scripts/sync_jamf_users_to_fleet.py`, a Python
script that:

- Scrapes every computer in Jamf Pro via the Classic API
(`/JSSResource/computers/subset/basic`)
- Pulls the assigned user's email (falls back to username if no email is
set)
- Matches each device to a Fleet host by serial number
- Assigns that user to the host in Fleet via `PUT
/api/v1/fleet/hosts/:id/device_mapping`

Features:
- Supports both OAuth 2.0 client credentials and username/password auth
for Jamf
- `--dry-run` flag to preview changes without modifying Fleet
- Summary statistics on completion (assigned, skipped, errors)

Resolves fleetdm/confidential#14972
2026-03-20 14:54:45 -04:00
..
sync_jamf_users_to_fleet.py Add script to sync Jamf user assignments to Fleet device mapping (#42177) 2026-03-20 14:54:45 -04:00
upload_script_all_teams.py For Github issue: 13323 (#36840) 2025-12-12 10:17:28 -08:00