Skip to content

Unit functions

Unit functions let you create and delete units and retrieve or change information about specific units from a script, including their relations to groups, packages, printers, users, and management points.

Most unit functions take a unit name and a unit type:

  • Unit name: Most functions also accept the UUID of the unit instead of the name. The parameter description on each function page says whether the UUID is accepted. Unit names aren’t always unique, so use the UUID if several units can have the same name.
  • Unit type: Use “Computer” or “User”. You can also use the numeric IDs 1 (Computer) and 2 (User).
  • Management Point: When you look up a unit or a package by name, most functions work on the Management Point that you selected with Set instance management point. See Container functions for the typical start of an SDK script, and for how errors are reported.