RemoveApplicationCommand and ManagedApplicationListCommand does not work as expected on macOS 11.0 beta5 (20A5354i)

Hi Dear Apple expert,

I am now trying to use "RemoveApplication" MDM command to uninstall a managed application on macOS device running 11.0beta5, but test result is not as expected.
It always says this application is not managed.

Could you please share which kinds of applications will be marked as "managed"on mac device?

More details here:
  1. I pushed a .pkg("com.skype.skype") from my MDM server and this application is installed successfully on Mac device.

When try to remove this application with RemoveApplication MDM command(https://developer.apple.com/documentation/devicemanagement/removeapplicationcommand?changes=latest_minor) pushed from my MDM server, always fails with error which reports this application is not managed, copy error message received here:

Error MCMDMErrorDomain-12029: null (App with identifier 'com.skype.skype' is not being managed)


2. Also tried "ManagedApplicationList"(https://developer.apple.com/documentation/devicemanagement/list_the_managed_apps?changes=latest_minor), but same issue, this installed application is not in the managed app list of the response.


Thanks,
Weijin

Hi there, it sounds to me like the app is not getting installed as managed in the first place. Are you making sure to include the new InstallAsManaged option in the InstallApplication command you are sending to the device? The documentation for the key is noted here. Please be aware the current description does contain an error this key is only supported on macOS and has no impact on iOS or tvOS. Also, are you using Device Enrollment or User Enrollment. In Big Sur managed apps will not be supported for User Enrollment.
RemoveApplicationCommand and ManagedApplicationListCommand does not work as expected on macOS 11.0 beta5 (20A5354i)
 
 
Q