Inventory ManagementΒΆ

Tools for comprehensive computer inventory retrieval and search capabilities in Jamf Pro.

Get Computer InventoryΒΆ

Retrieve detailed computer inventory information by serial number.

Parameter

Type

Required

Description

serial_number

str

Yes

The serial number of the computer to retrieve

Example Response
{
  "general": {
    "id": 123,
    "name": "John's MacBook Pro",
    "serial_number": "ABC123456",
    "udid": "12345678-1234-1234-1234-123456789012",
    "model": "MacBook Pro (16-inch, 2023)",
    "model_identifier": "Mac15,6",
    "last_check_in": "2024-01-15T10:30:00Z"
  },
  "hardware": {
    "make": "Apple",
    "model": "MacBook Pro",
    "processor": "Apple M3 Max",
    "processor_speed_mhz": 3500,
    "total_ram_mb": 32768,
    "battery_capacity": 95
  },
  "operating_system": {
    "name": "macOS",
    "version": "14.2.1",
    "build": "23C71"
  },
  "storage": {
    "disks": [{
      "device": "disk1s1",
      "model": "Apple SSD",
      "size_mb": 524288,
      "available_mb": 262144,
      "percentage_used": 50
    }]
  },
  "applications": [{
    "name": "Google Chrome",
    "version": "120.0.6099.129",
    "bundle_id": "com.google.Chrome"
  }]
}

Usage ExamplesΒΆ

Get the full inventory for computer with serial number ABC123
Show me hardware and storage details for serial XYZ789
Retrieve application inventory for computer ABC123

Get Computer HistoryΒΆ

Retrieve computer history including policy logs, management commands, and user activity.

Parameter

Type

Required

Description

computer_id

int | str

Yes

Computer JSS ID

Example Response
{
  "computer_id": 123,
  "general": {
    "name": "John's MacBook Pro",
    "serial_number": "ABC123456"
  },
  "policy_logs": [{
    "policy_id": 45,
    "policy_name": "Install Chrome",
    "status": "Completed",
    "date_completed": "2024-01-15T09:00:00Z",
    "username": "john.doe"
  }],
  "commands": [{
    "command": "Update Inventory",
    "status": "Completed",
    "issued": "2024-01-15T08:00:00Z",
    "completed": "2024-01-15T08:01:00Z"
  }],
  "user_location_history": [{
    "username": "john.doe",
    "full_name": "John Doe",
    "email": "john.doe@company.com",
    "department": "Engineering",
    "building": "HQ",
    "date_assigned": "2023-06-01T00:00:00Z"
  }],
  "computer_usage_logs": [{
    "event": "Login",
    "username": "john.doe",
    "date": "2024-01-15T08:30:00Z"
  }]
}

Usage ExamplesΒΆ

Show me the policy execution history for computer ID 123
Get all management commands sent to computer 456 in the last month
Display user assignment history for computer ID 789

Related ToolsΒΆ

Get Computer Inventory

Current inventory and configuration details

Get Computer Inventory
Get Policies

View all available policies

Get Policies

Search ComputersΒΆ

Search for computers using various criteria including name, serial number, or other attributes.

Parameter

Type

Required

Description

identifier

str

No

Search term (name or serial)

page_size

str

No

Results per page (defaults to 100)

sections

list[str]

No

Inventory sections to include

Example Response
[
  {
    "id": 123,
    "name": "John's MacBook Pro",
    "serial_number": "ABC123456",
    "udid": "12345678-1234-1234-1234-123456789012",
    "model": "MacBook Pro",
    "os_version": "14.2.1",
    "last_check_in": "2024-01-15T10:30:00Z",
    "managed": true,
    "supervised": false
  },
  {
    "id": 124,
    "name": "Jane's MacBook Air",
    "serial_number": "XYZ789012",
    "model": "MacBook Air",
    "os_version": "14.2.1",
    "last_check_in": "2024-01-15T09:15:00Z",
    "managed": true,
    "supervised": true
  }
]

Usage ExamplesΒΆ

Find all computers with "MacBook Pro" in their name
Search for computers that haven't checked in for 30 days
List all computers in the inventory with their basic details

Related ToolsΒΆ

Get Computer Inventory

Detailed information for specific computers

Get Computer Inventory
Get Smart Groups

Pre-configured computer groups

Get Smart Groups

Inventory Sections ReferenceΒΆ

Available Inventory Sections

Section

Description

Key Data

GENERAL

Basic computer information

Name, serial, model, UDID

DISK_ENCRYPTION

FileVault status

Encryption state, recovery key

PURCHASING

Purchase and warranty info

PO number, warranty expiration

APPLICATIONS

Installed applications

App names, versions, bundle IDs

STORAGE

Disk usage details

Capacity, available space

USER_AND_LOCATION

Assignment information

User, department, building

CONFIGURATION_PROFILES

Installed profiles

Profile names, payloads

HARDWARE

Hardware specifications

CPU, RAM, battery

SECURITY

Security settings

SIP, Gatekeeper, Firewall

OPERATING_SYSTEM

OS details

Version, build, kernel

EXTENSION_ATTRIBUTES

Custom attributes

Organization-specific data

GROUP_MEMBERSHIPS

Group assignments

Smart and static groups

Best PracticesΒΆ

Data Freshness

Check last_check_in timestamps to assess data currency before making decisions.

Selective Retrieval

Request only needed inventory sections to improve performance and reduce data transfer.

Cache Awareness

Remember that Jamf Pro updates inventory on device check-in, not in real-time.

Smart Searching

Use specific identifiers when possible rather than broad searches for better performance.

Common Use CasesΒΆ

Hardware AuditΒΆ

Get hardware specifications for all computers with less than 16GB of RAM

Software ComplianceΒΆ

Find all computers with Chrome installed and show their version numbers

User Assignment TrackingΒΆ

Show me all computers assigned to the Engineering department with their users