class Jamf::UserGroup

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

MEMBER_CLASS

A User in the JSS.

@see Jamf::APIObject

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_email_addresses() click to toggle source

Return an array of the email addresses of users in this group

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

    # File lib/jamf/api/classic/api_objects/user_group.rb
137 def member_email_addresses
138   @members.map{|m| m[:email_address]}
139 end
member_full_names() click to toggle source

Return an array of the full names of users in this group

@return [Array<String>] the member full names

    # File lib/jamf/api/classic/api_objects/user_group.rb
119 def member_full_names
120   @members.map{|m| m[:full_name]}
121 end
member_phone_numbers() click to toggle source

Return an array of the phone numbers of users in this group

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

    # File lib/jamf/api/classic/api_objects/user_group.rb
128 def member_phone_numbers
129   @members.map{|m| m[:phone_number]}
130 end
member_usernames() click to toggle source

Return an array of the usernames of users in this group

@return [Array<String>] the member usernames

    # File lib/jamf/api/classic/api_objects/user_group.rb
110 def member_usernames
111   @members.map{|m| m[:username]}
112 end