Skip to main content

Delete User

This endpoint sends an MDM command to delete a local user account on macOS and Shared iPad (Device Supervision via Automated Device Enrollment is required).

Request Body Parameters: application/json


DeleteAllUsers - boolean

ForceDeletion - boolean

UserName - string

Responses codes


  • 200 OK
  • 400 Bad Request
    • "Command already running" - The command may already be running in a Pending state waiting on the device.
    • "Command is not allowed for current device" - The command may not be compatible with the target device.
  • 401 Unauthorized
    • Invalid access token. This can happen if the token was revoked, the required permissions are missing, or the token has expired.
  • 404 Not found
    • Unable to locate the resource in the Kandji instance.

Parameters

ParameterDescription
Delete All Users-
Device ID-
Force Deletion-
User Name-

Workflow Library Example

Delete User with Kandji and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop