Repository navigation
JamfObjectReader
Graham Pugh edited this page Sep 3, 2026
·
1 revision
A processor for AutoPkg to read an API object and optionally, output to file (XML or JSON depending on whether the Classic or Jamf Pro API is used). Optionally, all objects of a single type may be downloaded in one operation. Additionally, Scripts, Extension Attributes and Mobileconfig files are extracted from the XML and saved as separate files.
-
JSS_URL:
- required: True
- description: URL to a Jamf Pro server that the API user has write access to, optionally set as a key in the com.github.autopkg preference file.
-
API_USERNAME:
- required: False
- description: Username of account with appropriate access to jss, optionally set as a key in the com.github.autopkg preference file.
-
API_PASSWORD:
- required: False
- description: Password of api user, optionally set as a key in the com.github.autopkg preference file.
-
CLIENT_ID:
- required: False
- description: Client ID with access to access to jss, optionally set as a key in the com.github.autopkg preference file.
-
CLIENT_SECRET:
- required: False
- description: Secret associated with the Client ID, optionally set as a key in the com.github.autopkg preference file.
-
BEARER_TOKEN:
- required: False
- description: A pre-existing bearer token for the Jamf Pro API. If provided, the token will be validated and used directly, bypassing credential-based authentication.
-
JAMF_CLI_PROFILE:
- required: False
- description: A jamf-cli profile to use to obtain a bearer token. Requires jamf-cli to be installed and in the PATH. Set to a profile name to enable.
- default: ""
-
object_id:
- required: False
- description: ID of an object. May be used instead of supplying an object name.
-
object_name:
- required: False
- description: The name of the API object
-
object_type:
- required: True
- description: The API object type. This is in the singular form - the name of the key in the XML template. See the Object Reference for valid objects.
-
output_dir:
- required: False
- description: Output directory to dump the xml or json file.
-
settings_key:
- required: False
- description: For settings-style endpoints, specify a key from which to get the value.
-
uuid:
- required: False
-
description: For the managed software update events endpoint, specify a
uuidvalue from which to get the events.
-
all_objects:
- required: False
- description: Download all objects of the specific object type.
-
list_only:
- required: False
- description: Only output a variable with a list of all objects - ID and name (depending on the endpoint, more keys may exist in the outputted list).
-
elements_to_remove:
- required: False
-
description: A list of XML or JSON elements that should be removed from the downloaded XML. Note that
idandself_service_iconare removed automatically.
-
elements_to_retain:
- required: False
- description: A list of XML or JSON elements that should be retained from the downloaded XML. Other keys will be removed if any value is set.
-
max_tries:
- required: False
- description: Maximum number of attempts to upload the account. Must be an integer between 1 and 10.
- default: "5"
-
skip_if:
- required: False
- description: Skip the process if a supplied predicate is met.
-
jamfobjectreader_summary_result:
- description: Description of interesting results.
-
object_name:
- description: The name of the API object
-
object_list:
- description: A list of all objects.
-
object_id:
- description: The ID of the API object
-
raw_object:
- description: String containing the complete raw downloaded XML
-
parsed_object:
- description: String containing parsed XML (removes IDs and computers)
-
output_dir:
- description: Directory the xml or json file was saved to.
-
file_path:
- description: Path of outputted results.
-
payload_file_path:
- description: Path of outputted payload.
-
process_skipped:
- description: Boolean - True if the process was skipped due to skip_if predicate resolved to True.
- Credentials
- Required privileges
- Configuration for distribution points
- JamfUploader as an alternative to JSSImporter
- Example recipes
- Uploading a package only
- Example Workflows
- JamfRecipeMaker
- AppStoreInfoProvider
- ConvertGroupXMLtoJSON
- JamfAccountUploader
- JamfAPIClientUploader
- JamfAPIRoleUploader
- JamfCategoryUploader
- JamfComputerGroupDeleter
- JamfComputerGroupUploader
- JamfComputerPreStageUploader
- JamfComputerProfileUploader
- JamfComputerStaticGroupUploader
- JamfDirectoryServiceGroupEncoder
- JamfDockItemUploader
- JamfExtensionAttributePopupChoiceAdjuster
- JamfExtensionAttributeUploader
- JamfIconUploader
- JamfMacAppUploader
- JamfMobileDeviceAppUploader
- JamfMobileDeviceExtensionAttributeUploader
- JamfMobileDeviceGroupUploader
- JamfMobileDeviceProfileUploader
- JamfMobileDeviceStaticGroupUploader
- JamfMSUPlanUploader
- JamfObjectDeleter
- JamfObjectReader
- JamfObjectStateChanger
- JamfObjectUploader
- JamfPackageCleaner
- JamfPackageRecalculator
- JamfPackageUploader
- JamfPatchChecker
- JamfPatchUploader
- JamfPkgMetadataUploader
- JamfPolicyDeleter
- JamfPolicyLogFlusher
- JamfPolicyUploader
- JamfSchemaLister
- JamfScopeAdjuster
- JamfScriptUploader
- JamfSoftwareRestrictionUploader
- JamfUnusedPackageCleaner
- JamfUploaderJiraIssueCreator
- JamfUploaderSlacker
- JamfUploaderTeamsNotifier
- Object Reference