@tdenton Do you have any other profiles with a Restrictions payload applied? That will cause problems because if you haven't allowed screenshots in another profile being applied it is undefined which profile will end up applying that setting. This is a longstanding problem with the lack of control over exactly what keys will be applied using the Restrictions payload editor in Jamf Pro. You can get much more granular results using the Application & Custom Settings payload and custom schemas to set only the restrictions you want: https://www.jamf.com/blog/profilecreator-manifests-now-available-for-jamf/
- What happens when a user manually runs the screenshot.app?
- What happens when you remove the Configuration Profile?
screenshot app works fine on the handfull of machines I checked.
Shift-Command-3 capture the whole screen and this work on some machines I tested.
I removed profile from my test mac and Press Shift-Command-4 normal bring up crosshair to select what you want to screenshoot. This didnt work with the profile or without it.
I built a fresh production machine yesterday and keyboardshort cut works no problem machine, its in my home office so much easier to test.
Im accessing these machine via VNC wondering if this has something to do with it.
It seems to keyboard shortcut Press Shift-Command-4 which doesnt work.
Very puzzled
@tdenton Do you have any other profiles with a Restrictions payload applied? That will cause problems because if you haven't allowed screenshots in another profile being applied it is undefined which profile will end up applying that setting. This is a longstanding problem with the lack of control over exactly what keys will be applied using the Restrictions payload editor in Jamf Pro. You can get much more granular results using the Application & Custom Settings payload and custom schemas to set only the restrictions you want: https://www.jamf.com/blog/profilecreator-manifests-now-available-for-jamf/
Been looking through all my config and can't locate any clashes.
Perhaps deploying it through the method you suggusted would be better.
Thanks
@tdenton Do you have any other profiles with a Restrictions payload applied? That will cause problems because if you haven't allowed screenshots in another profile being applied it is undefined which profile will end up applying that setting. This is a longstanding problem with the lack of control over exactly what keys will be applied using the Restrictions payload editor in Jamf Pro. You can get much more granular results using the Application & Custom Settings payload and custom schemas to set only the restrictions you want: https://www.jamf.com/blog/profilecreator-manifests-now-available-for-jamf/
I have managed to create a custom schema for allow screenshot it also meant creating something to allow screensharing so I could reach me machine onsite.
With both of those applied and removing the orginal profile it still wont work.
Shift-Command-4 just wont do anything

I have managed to create a custom schema for allow screenshot it also meant creating something to allow screensharing so I could reach me machine onsite.
With both of those applied and removing the orginal profile it still wont work.
Shift-Command-4 just wont do anything

@tdenton I just reviewed this thread, and I initially missed your comment about being on VNC when seeing this behavior. That definitely could have an impact on the shift-command-4 capture process but short of trying it while hands-on with a Mac it's not working on I don't know how you can be sure.
I'll also mention this is how you can check for dueling Configuration Profiles applying the same setting (credit to jmahlman posting an example of this query on Mac Admins Slack):
sudo /usr/bin/osascript -l JavaScript << EOS
$.NSUserDefaults.alloc.initWithSuiteName('com.apple.screencapture').objectForKey('keyForDisablingScreenshots').js
EOS
Substitute the actual key name of the Disable Screenshots key for keyForDisablingScreenshots (it isn't an option in the copy of the com.apple.screencapture.json file I'm using.
@tdenton I just reviewed this thread, and I initially missed your comment about being on VNC when seeing this behavior. That definitely could have an impact on the shift-command-4 capture process but short of trying it while hands-on with a Mac it's not working on I don't know how you can be sure.
I'll also mention this is how you can check for dueling Configuration Profiles applying the same setting (credit to jmahlman posting an example of this query on Mac Admins Slack):
sudo /usr/bin/osascript -l JavaScript << EOS
$.NSUserDefaults.alloc.initWithSuiteName('com.apple.screencapture').objectForKey('keyForDisablingScreenshots').js
EOS
Substitute the actual key name of the Disable Screenshots key for keyForDisablingScreenshots (it isn't an option in the copy of the com.apple.screencapture.json file I'm using.
As I say it works fine on a physical mac I have in my home office with the same build as a lab. So it would suggest its something to do with vnc.
I assume if returns nothing there no conflicts.
tdentonadmin@M-5c1bf48bd781 tdenton % sudo /usr/bin/osascript -l JavaScript << EOS
$.NSUserDefaults.alloc.initWithSuiteName('com.apple.screencapture').objectForKey('keyForDisablingScreenshots').js
EOS
Password:
tdentonadmin@M-5c1bf48bd781 tdenton %
As I say it works fine on a physical mac I have in my home office with the same build as a lab. So it would suggest its something to do with vnc.
I assume if returns nothing there no conflicts.
tdentonadmin@M-5c1bf48bd781 tdenton % sudo /usr/bin/osascript -l JavaScript << EOS
$.NSUserDefaults.alloc.initWithSuiteName('com.apple.screencapture').objectForKey('keyForDisablingScreenshots').js
EOS
Password:
tdentonadmin@M-5c1bf48bd781 tdenton %
just been speaking with some of our operations colleagues and they have confirmed it does work in labs. So it appears to be limitation of vnc.
Thanks everyone for there contrubutions @sdagley @AJPinto
Nice to use some of Jamf 300 bits as custom schemas is covered there
As I say it works fine on a physical mac I have in my home office with the same build as a lab. So it would suggest its something to do with vnc.
I assume if returns nothing there no conflicts.
tdentonadmin@M-5c1bf48bd781 tdenton % sudo /usr/bin/osascript -l JavaScript << EOS
$.NSUserDefaults.alloc.initWithSuiteName('com.apple.screencapture').objectForKey('keyForDisablingScreenshots').js
EOS
Password:
tdentonadmin@M-5c1bf48bd781 tdenton %
If run as I posted it the command would return nothing because "keyForDisablingScreenshots" was just a placeholder since I could not find the actual key needed in that payload.