Self Service branded icon location

sdunbar
Contributor

Can anyone tell me the location of the Self Service company branded icon.
This is not the Jamf icon found in Applications/Self Service.app/Resources/AppIcon.icns

I am after the branded icon that you upload into the Branding section of Self Service in Jamf Pro.

The reason I ask is I wanted to add this to messages we send out using Jamf Helper and -icon "full path to icon location"

I would have thought this would be locally on the machine somewhere, but I have had no luck looking for it on the machine, or within Jamf Nation posts.

Many thanks

15 REPLIES 15

bramstedtb
New Contributor III

Is this what you're looking for?

/Library/Application Support/JAMF/Jamf.app/Contents/Resources/AppIcon.icns

JustDeWon
Contributor III

@sdunbar , just note.. I'm not too sure that get's updated until a user opens Self-Service with the new branded icon.

sdunbar
Contributor

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

sdunbar
Contributor

@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

JustDeWon
Contributor III

edited to the correct path below

JustDeWon
Contributor III

Actually @sdunbar it's ~/Library/Application Support/com.jamfsoftware.selfservice.mac/Documents/Images/brandingimage.png that's where it updates

sdunbar
Contributor

@JustDeWon BINGO, that is it, many thanks indeed!

JustDeWon
Contributor III

see edit above..

larry_barrett
Valued Contributor

@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)

joshuasee
Contributor III

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}";

JamieL
New Contributor II

Does anyone know the location of the branded icon now as it doesn't appear to be in the location mentioned above?

skeenan07
New Contributor III

@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

pwildemann
New Contributor II

@skeenan07 Doesn't seem to be in there either.

leslie
Contributor II

Make sure you also set a custom header. Without it (starting with 10.27) neither image will come down.

djquazzi
New Contributor II

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)