Skip to content

List MDM commands does not return DeviceLock by default #32785

@mason-buettner

Description

@mason-buettner

Fleet version: 4.73

Web browser and operating system: Chrome 139 on macOS 15.6.1


💥  Actual behavior

When using the GET /api/v1/fleet/commands endpoint, commands with a request_type of DeviceLock are not returned unless the parameter is included.

For example:

curl --location -H 'Content-Type:application/json' -H 'Authorization: Bearer <token>' 'https://testURL/api/v1/fleet/commands?host_identifier=<identifier>&order_key=updated_at&order_direction=asc'

Returns output, but no DeviceLock commands. However, if you were to change the command to include the DeviceLock parameter:

curl --location -H 'Content-Type:application/json' -H 'Authorization: Bearer <token>' 'https://testURL/api/v1/fleet/commands?request_type=DeviceLock&host_identifier=<identifier>&order_key=updated_at&order_direction=asc'

It would show DeviceLock commands.

🛠️ To fix

TBD

Product designer: _________________________

🧑‍💻  Steps to reproduce

  1. Lock a macOS device.
  2. List the MDM commands for the device with no parameters aside from the host_identifier.
  3. Note the output's lack of DeviceLock commands.
  4. List the MDM commands with a filter for the request_type of DeviceLock

🕯️ More info (optional)

N/A

Metadata

Metadata

Assignees

Labels

:help-gtm-opsTasks related to 🚂 fleetdm.com/handbook/company/go-to-market-operations.:productProduct Design department (shows up on 🦢 Drafting board)bugSomething isn't working as documentedcustomer-starchik

Type

No type

Projects

Status

🦢 Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions