Category filter

Configuration Profile to manage login and background items for Mac

Login items on Macs are applications, agents, or daemons set to launch automatically when a user logs into the system. By configuring managed login items, organizations can ensure that essential enterprise software and services are available immediately after login. This configuration can be controlled via mobile device management (MDM) solutions. It ensures that end users have no control over these items, as even users with administrator credentials cannot disable them through the typical user interface. IT admins can set up managed login items for their organization’s macOS devices using the configuration profile provided in this document. Hexnode’s Deploy Custom Configuration feature helps IT admins remotely install configuration profiles on macOS devices enrolled in Hexnode UEM.

Disclaimer:

  • The following configuration profile will only work on devices enrolled in a Mobile Device Management (MDM) solution.
  • The sample configuration profiles provided below are created using various profile creator applications.
  • The following configuration profile only works for devices running macOS 13 and above.

Setup managed login items

The following configuration profile can be used to set up managed login items on macOS devices. The configuration profile uses the com.apple.servicemanagement payload to set up rules for managed login items. The applications, agents, or daemons matching the criteria defined by the rules in the configuration profile are set as managed login items.

The above configuration profile uses the following keys to setup managed login items:

Keys Description
Rules This key is used to set up rules for managed login items. The applications, agents, or daemons matching the rules will be set as managed login items automatically on the device.
RuleType This key defines the type of rule to compare the criteria of the login item. The key supports the following inputs:
  • BundleIdentifier
  • BundleIdentifierPrefix
  • Label
  • LabelPrefix
  • TeamIdentifier
RuleValue This key holds the value for the type of rule selected. For example, if you choose BundleIdentifier as the RuleType, provide the bundle identifier of the corresponding login item for this key.
Comment (optional) You can assign a comment describing the rule using this key.
TeamIdentifier (optional) This key can be used to limit the scope of the rule that the system uses after matching the RuleType and RuleValue of the login item.

Sample Configuration profile

The following configuration profile will set up the Hexnode UEM Helper application as a managed login item on a macOS device enrolled in Hexnode UEM.
Values used for the keys are:

  • RuleType – BundleIdentifier
  • RuleValue – Bundle identifier of the Microsoft Teams Application – com.hexnode.hexnodegui
  • Comment – A short description for the rule – “Setting Hexnode UEM Helper as a managed login item.”

Upon successful profile installation Hexnode UEM Helper is listed under the System Setting/System Preferences > General > Login Items. Hexnode UEM Helper will be added to the list of background running apps as a managed login item. Even a user with admin credentials will not be able to disable this login item.

 Hexnode UEM Helper added to the list background running apps on a macOS device

Notes:

  • To create and customize configuration profiles, you can use tools like Apple Configurator, Profile Manager or manually create them using text editors.
  • Use non-encrypted .mobileconfig, .xml, or plist files to deploy profiles across macOS devices.
  • Ensure that you do not associate conflicting configurations with the devices.
  • It is recommended to manually validate the configuration profile execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the configuration profile.

  • Configuration Profile Repository