Searched Jamf Nation but couldn't find anything close enough to my use case.
I'm querying the Jamf API for computer IDs by way of usernames:
jamfUserURL="https://[company].jamfcloud.com/JSSResource/users/name/$username"
computerID="$(curl -X GET -s -k -u "$jamfUser":"$jamfPass" "$jamfUserURL" | xmllint --xpath '/user/links/computers/computer/id/text()' - )"
echo $computerID
This works great except for end users who have more than one computer in the environment. Then I get a result with all IDs combined into one return. Would it make sense to stick this in a for loop to iterate through the multiple IDs? If so, can someone please assist?