Is this what you're looking for?
/Library/Application Support/JAMF/Jamf.app/Contents/Resources/AppIcon.icns
@sdunbar , just note.. I'm not too sure that get's updated until a user opens Self-Service with the new branded icon.
Thanks @bramstedtb, but I don't think this is it, as that still looks like the jamf logo, I am after our own branded icon that we uploaded into the Branding section of Self Service
@JustDeWon Is that then saved locally on the users machine, or is it pulled down from the Jamf server, which would explain why I cannot find it?
Thanks
edited to the correct path below
Actually @sdunbar it's ~/Library/Application Support/com.jamfsoftware.selfservice.mac/Documents/Images/brandingimage.png
that's where it updates
@JustDeWon BINGO, that is it, many thanks indeed!
@sdunbar You have to open Self Service for the icon to be updated. Self Service must be opened 1x for that icon to change (on every machine)
FWIW, I pull the icon off the JSS and paste it on via script, so Self Service doesn't have to be opened. The URL is https://yourjss:8443/stored-images?id=1
The icon geometry is a little off compared to when I was building custom Self Service apps before branding was available, but it seems to work.
#!/usr/bin/env bash
#
# Upgrade self service with custom icon
# by Joshua See February 1, 2019
tmpdir=$(mktemp -d /tmp/ss_upgrade_XXXXX);
cd "${tmpdir}";
echo -n "Starting downloads... ";
/usr/bin/curl -sO https://yourjss:8443/bin/SelfService.tar.gz; # Download SS
/usr/bin/curl -s "https://yourjss:8443/stored-images?id=1" -o ss_icon.png; # Download icon
echo "Downloads done.";
# convert from archive to app
/usr/bin/tar -xzf SelfService.tar.gz || (echo "Failed: Unable to dearchive." && exit 1);
# If SS is running, quit it gracefullly.
/usr/bin/pgrep -fil Self.Service && /usr/bin/osascript -e 'tell app "Self Service" to quit';
# Clear SS cache
rm -rf /Users/*/Library/Caches/com.jamfsoftware.selfservice.mac;
# Build a utility to customize the SS icon
cat > custicon.py <<SLICEOPY
#!/usr/bin/env python
import Cocoa
import sys
Cocoa.NSWorkspace.sharedWorkspace().setIcon_forFile_options_(Cocoa.NSImage.alloc().initWithContentsOfFile_(sys.argv[1].decode('utf-8')), sys.argv[2].decode('utf-8'), 0) or sys.exit("Unable to set file icon")
exit()
SLICEOPY
/usr/bin/sed -i'bak' -E '/(exit.*)/q' custicon.py; # In testing the termination string for the here file failed. This command truncates custicon.py to where it is supposed to end.
chmod +x custicon.py;
# Customize SS icon
./custicon.py ss_icon.png Self Service.app; &> /dev/null
# If new SS is kosher, replace existing Self Service
if /usr/bin/codesign -v Self Service.app; then
ver=$(defaults read $PWD/Self Service.app/Contents/Info CFBundleVersion);
echo "Self Service version ${ver} prepared. Moving into place.";
rm -rf /Applications/Self Service.app;
mv Self Service.app /Applications/;
chown 0:0 /Applications/Self Service.app;
chmod -R +r /Applications/Self Service.app;
fi
# Clean up
cd /
rm -rf "${tmpdir}";
Does anyone know the location of the branded icon now as it doesn't appear to be in the location mentioned above?
@JamieL Try one of the following locations:
- /Library/Application Support/JAMF/bin/brandingImage.png
- ~/Library/Application Support/com.jamfsoftware.selfservice.mac/Documents/Images/brandingimage.png
@skeenan07 Doesn't seem to be in there either.
Make sure you also set a custom header. Without it (starting with 10.27) neither image will come down.
You can still find it by accessing the URL https://COMPANY.jamfcloud.com/stored-images/?id=1 (change trailing 1 to 2,3, 4 until you find the one you looking for)
I wasn't able to get my logo from stored-images URL... but then I remembered about https://COMPANY.jamfcloud.com/view/settings/self-service/branding I was able to get it from
https://COMPANY.jamfcloud.com/api/v1/branding-images/download/2 and a smaller version at https://COMPANY.jamfcloud.com/api/v1/branding-images/download/4 along with the background you set for custom Self Service Branding at 3... that might be easier than determining the local user and trying to pull it down that way. ¯\\_(ツ)_/¯