Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.apple.mcxprinting does not allow multiple printers... #584

Open
everetteallen opened this issue Dec 1, 2022 · 1 comment · Fixed by #585
Open

com.apple.mcxprinting does not allow multiple printers... #584

everetteallen opened this issue Dec 1, 2022 · 1 comment · Fixed by #585
Labels
⚠️ fix manifest Something isn't right & needs fixing

Comments

@everetteallen
Copy link

Please provide the following information:

Name of App / Payload: com.apple.mcxprinting
Preference key(s) needing fixing: UserPrinterList

Description of problem(s) / error(s) with listed key(s): *ex. When X preference is configured, it does not *
Does not allow for multiple printers in UserPrinterList per
https://developer.apple.com/documentation/devicemanagement/printing

Description of expected behavior:
Multiple printers should be able to be configured.

Applicable Documentation URL(s):
https://developer.apple.com/documentation/devicemanagement/printing

How are you testing / deploying your profile?: ex. manual profile install, MDM, etc.
Both manually and via Jamf Pro MDM with XML and JSON versions.

@everetteallen everetteallen added the ⚠️ fix manifest Something isn't right & needs fixing label Dec 1, 2022
@apizz apizz closed this as completed in #585 Dec 4, 2022
@everetteallen
Copy link
Author

@apizz
Actually this manifest does not create a profile that creates printers as expected. The User Printer List is an object that is, as best I can see, a Dictionary of Keys and Dictionaries. When I create a profile by hand using the example from apple ( https://developer.apple.com/documentation/devicemanagement/printing) I get:
<key>UserPrinterList</key> <dict> <key>WolfPrint_BlackAndWhite</key> <dict> <key>DeviceURI</key> <string>ipps://server.foo.edu/printers/WolfPrint-BlackAndWhite</string> <key>DisplayName</key> <string>WolfPrint_BlackAndWhite</string> <key>Location</key> <string>Black and White Follow Me Print Queue</string> <key>Model</key> <string>PaperCut-AirPrint</string> <key>PPDURL</key> <string>https://raw.githubusercontent.com/everetteallen/remoteppd/main/AirPrint.ppd</string> <key>PrinterLocked</key> <false/> </dict> <key>WolfPrint_Color</key> <dict> <key>DeviceURI</key> <string>ipps://server.foo.edu/printers/WolfPrint-Color</string> <key>DisplayName</key> <string>WolfPrint_Color</string> <key>Location</key> <string>Color Follow Me Print Queue</string> <key>Model</key> <string>PaperCut-AirPrint</string> <key>PPDURL</key> <string>https://raw.githubusercontent.com/everetteallen/remoteppd/main/AirPrint.ppd</string> <key>PrinterLocked</key> <false/> </dict> </dict>
This works.

What does not work is what the profile template creates:
<key>UserPrinterList</key> <array> <dict> <key>DeviceURI</key> <string>ipps://server.foo.edu/printers/WolfPrint-BlackAndWhite</string> <key>DisplayName</key> <string>WolfPrint_BlackAndWhite</string> <key>Location</key> <string>Black and White Follow Me Print Queue</string> <key>Model</key> <string>PaperCut-AirPrint</string> <key>PPDURL</key> <string>https://raw.githubusercontent.com/everetteallen/remoteppd/main/AirPrint.ppd</string> <key>PrinterLocked</key> <false/> </dict> <dict> <key>DeviceURI</key> <string>ipps://server.foo.edu/printers/WolfPrint-Color</string> <key>DisplayName</key> <string>WolfPrint_Color</string> <key>Location</key> <string>Color Follow Me Print Queue</string> <key>Model</key> <string>PaperCut-AirPrint</string> <key>PPDURL</key> <string>https://raw.githubusercontent.com/everetteallen/remoteppd/main/AirPrint.ppd</string> <key>PrinterLocked</key> <false/> </dict> </array>
Which makes Profile Create display correctly but produce a template that makes profiles macOS can not understand and thus ignores the entire UserPrinterList key.
See the 2 screen shots.
notworking mobileconfig for com apple mcxprinting

working mobileconfig for com apple mcxprinting

@apizz apizz reopened this Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️ fix manifest Something isn't right & needs fixing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants