I am developing an app that will install and manage network printers. The app installs the printers using the lpadmin tool.
Now, we have a customer that uses MDM profile for devices. The profile has the setting "showOnlyManagedPrinter" set to disallow installation of local printers. The customer wants our app to be able to install printers though. The result is that the printers can be installed with the app but will not show up in dialogs, etc. (For example the Printer & Scanners dialog). This causes a problem for them.
My question is, is there a way to "fool" macOS to treat these printers as "managed" printers and show them. For example is there a flag or setting that you can apply when you install or post-installation of a printer. How does the OS decide which printers are managed or not?