Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import csv
import json
import requests
## CSV FORMAT:
# header row - ignored (but should exist)
# serial number
import json
import requests
################# REQUIRED USER DEFINED VARIABLES ############
# set network ID from https://url.jamfcloud.com/devices/enroll.html -> On device enrollment -> Network ID
networkId='yournetworkid'
# set api key from https://url.jamfcloud.com/configuration/api
apiKey='yourapikey'
#!/usr/bin/env python3
####################################################################################################
#
# Copyright (c) 2021, JAMF Software, LLC. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.