Posted on 05-23-2019 06:30 AM
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
Posted on 05-23-2019 06:33 AM
Is this what you're looking for?
/Library/Application Support/JAMF/Jamf.app/Contents/Resources/AppIcon.icns
Posted on 05-23-2019 06:39 AM
@sdunbar , just note.. I'm not too sure that get's updated until a user opens Self-Service with the new branded icon.
Posted on 05-23-2019 06:40 AM
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
Posted on 05-23-2019 06:47 AM
@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
Posted on 05-23-2019 06:49 AM
edited to the correct path below
Posted on 05-23-2019 06:54 AM
Actually @sdunbar it's ~/Library/Application Support/com.jamfsoftware.selfservice.mac/Documents/Images/brandingimage.png
that's where it updates
Posted on 05-23-2019 06:54 AM
@JustDeWon BINGO, that is it, many thanks indeed!
Posted on 05-23-2019 06:56 AM
see edit above..
Posted on 05-23-2019 06:57 AM
@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)
Posted on 05-23-2019 08:41 AM
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}";
Posted on 02-19-2021 12:18 AM
Does anyone know the location of the branded icon now as it doesn't appear to be in the location mentioned above?
Posted on 02-19-2021 10:05 AM
@JamieL Try one of the following locations:
Posted on 03-25-2021 09:59 AM
@skeenan07 Doesn't seem to be in there either.
Posted on 03-25-2021 06:31 PM
Make sure you also set a custom header. Without it (starting with 10.27) neither image will come down.
Posted on 05-20-2021 03:10 AM
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)
Posted on 04-09-2023 10:12 PM
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. ¯\_(ツ)_/¯
Posted on 05-17-2023 12:55 PM
FYI, this has changed to:
https://company.jamfcloud.com/api/v1/branding-images/download/1