Our company recently had a system stolen from us, a system that was (mistakenly) not enrolled in our JSS. Fortunately, it was enrolled in DEP so, once the system was wiped then it checked in with DEP and, subsequently, showed up in our JSS (I love this).
Besides trying to ID the system's precise location (see @bollman 's stunning geolocation script for this), I wanted to be able to capture pictures using the laptop's webcam and, much to my surprise, found that JAMF doesn't have this function (I came from from a Meraki world, where you could do all sorts of great stuff like that to track down stolen systems).
So I cobbled together the following script that, once you push imagesnap to the remote system's /usr/local/bin directory, can take a picture and upload it to a FTP server:
#!/bin/sh
# This script will take a picture using the laptop's default camera device, save it to
# the /tmp directory, upload the image to a FTP server and then delete the picture itself.
#
# Note the the webcam's 'on' light will turn on for 1-3 seconds as the picture is being
# taken.
#
# This script requires the installation of imagesnap to the /usr/local/bin directory.
# http://iharder.sourceforge.net/current/macosx/imagesnap/
/usr/local/bin/imagesnap - > /tmp/$(date +%Y%m%d_%H%M%S).jpg
touch /tmp/creds.txt
chmod 666 /tmp/creds.txt
echo "open <FTPserverIPorName>" >> /tmp/creds.txt
echo "user <FTPloginName> <FTPloginPassword>" >> /tmp/creds.txt
echo "lcd /tmp" >> /tmp/creds.txt
echo "put <yyyy>*.jpg" >> /tmp/creds.txt
echo "bye" >> /tmp/creds.txt
ftp -n < /tmp/creds.txt
rm /tmp/<yyyy>*.jpg
rm /tmp/creds.txt
The webcam's light comes on for 1-2 seconds as the pic is taken (unavoidable) but all you need is a few shots to get what you need. Obviously, fiddle with your policy to get this to fire of when you want (I'm just brute-forcing it with "at every check-in" and will manually kill the policy once I've got a few shots but a smarter person could consider setting up up on a schedule or, perhaps, even embedding a call to the script in the systems crontab).