class Jamf::MobileDeviceGroup

A Mobile Device group in the JSS

See also the parent class Jamf::Group

@see Jamf::APIObject

@see Jamf::Group

Constants

ADD_MEMBERS_ELEMENT

the XML element for immediate member additions via PUT

MDM_COMMAND_TARGET

what kind of devices are these WRT MDM

MEMBER_CLASS

This class represents a Mobile Device stored in the JSS.


Adding devices to the JSS

When creating new MobileDevices in the JSS with this class (using {Jamf::MobileDevice.make}) you must specify a udid, and serial_number before calling ‘create` or `save`. You can provide these values with the `.make` call, or afterward using setters.


Management History & Logs

MobileDevice Management History and logs can now be retrieved both from a MobileDevice instance, and directly via class methods without fetching an instance. This is handled by the mixed-in {Jamf::ManagementHistory} module, Q.V. for details.


MDM Commands

See the {Jamf::MDM} mixin module for Class and Instance methods for sending MDM commands to mobiledevices.

To send MDM commands without fetching mobiledevice instances, use the class methods, which can take multiple identifiers at once.

NOTE: If the {#name=} method is used to change the name of a supervized device, the DeviceName MDM command will be sent to the device when the changes are sent to the server via {#save} or {#update}

OBJECT_HISTORY_OBJECT_TYPE

the object type for this object in the object history table. See {APIObject#add_object_history_entry}

REMOVE_MEMBERS_ELEMENT

the XML element for immediate member removals via PUT

RSRC_BASE

The base for REST resources of this class

RSRC_LIST_KEY

the hash key used for the JSON list output of all objects in the JSS

RSRC_OBJECT_KEY

The hash key used for the JSON object output. It’s also used in various error messages

Public Instance Methods

member_mac_addresses() click to toggle source

Return an array of the mac_addrs of mobile_devices in this group

@return [Array<String>] the member mac addresses

    # File lib/jamf/api/classic/api_objects/mobile_device_group.rb
131 def member_mac_addresses
132   @members.map{|m| m[:mac_address]}
133 end
member_serial_numbers() click to toggle source

Return an array of the serial numbers of mobile_devices in this group

@return [Array<String>] the member serial numbers

    # File lib/jamf/api/classic/api_objects/mobile_device_group.rb
122 def member_serial_numbers
123   @members.map{|m| m[:serial_number]}
124 end
member_udids() click to toggle source

Return an array of the udids of mobile_devices in this group

@return [Array<String>] the member udids

    # File lib/jamf/api/classic/api_objects/mobile_device_group.rb
113 def member_udids
114   @members.map{|m| m[:udid]}
115 end
member_wifi_mac_addresses() click to toggle source

Return an array of the wifi mac_addrs of mobile_devices in this group

@return [Array<String>] the member wifi mac addresses

    # File lib/jamf/api/classic/api_objects/mobile_device_group.rb
140 def member_wifi_mac_addresses
141   @members.map{|m| m[:wifi_mac_address]}
142 end