Method: JSS::SelfServable#self_service_categories

Defined in:
lib/jss-api/api_object/self_servable.rb

#self_service_categoriesArray<Hash> (readonly)

Each Hash has these keys about the category

  • :id => [Integer] the JSS id of the category

  • :name => [String] the name of the category

  • :display_in => [Boolean] should the item be displayed in this category in SSvc? (OSX SSvc only)

  • :feature_in => [Boolean] should the item be featured in this category in SSVC? (OSX SSvc only)

NOTE: as of Casper 9.61 there’s a bug in the JSON output from the API, and only the last category is returned, if more than one are set.

Returns:

  • (Array<Hash>)

    The categories in which this item should appear in SSvc



133
134
135
# File 'lib/jss-api/api_object/self_servable.rb', line 133

def self_service_categories
  @self_service_categories
end