Hi @fdeltesta
Just update the computer record with "None", if you dont want to attach the computer to any site.
curl -sku username:password -H "content-type: text/xml" url/JSSResource/computers/id/24 -X PUT -d "<computer><general><site><name>None</name></site></general></computer>"
@Dharmateja_Athank you for your reply,
Though I'm not talking about the computer inventory, but the actual sites attached to a users profile in the database.
I plan on moving to a more user-based management since we're now able to use our AD departments in Jamf [...]
Thus It bothers me that whenever you link a computer to a user, it automatically put the user into a site, BUT if you unnassign the computer from the user, the user still have the site assigned to him. Which in here is problematic.
Though I could use your provided solution and adapt it to the users profile but it'll only clear the whole set; if the user is supposed to be in site A but was mistakingly put in site B, I can only remove both sites, and would need to list the devices assigned, then their sites, then manually code the reassignement of the correct site.... Anyway this is again, barbaric. I'm just baffled there's nothing about it in the documentation, and I'm affraid there's no way around tinkering a huge workaround for something that should be simple.