I have been asked to look into disabling screenshots for some of our users due to an application that they use that has access to sensitive data.
Because I don't hate our users I want to ONLY disable screenshots when that application is open. I have created a launchdaemon to run frequently and check if the application is open, but have been stuck on the best way of disabling screenshots.
I know it can be done with a config profile, but this overlaps with an existing config profile for other restrictions so I'd have to set something up to scope it out of that config profile and into a different one and I'd rather not remove and reinstall versions of our Default Restrictions config profile 2, 4, or more times per day.
I've also looked into https://www.jamf.com/jamf-nation/discussions/30511/disable-macos-screenshots which disables the hotkeys, but I don't think it'll be long before the users just figure out to quicklook Screenshot.app and do it that way.
Any other ideas for a way to solve this problem?
Also I know they can just take a picture of the screen with their phone.