> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getprimo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Login items

> Keep background items allowed on Macs, and open apps or run programs when an employee logs in on macOS and Windows.

The Login items control decides what starts with the device or the employee's session. On a Mac, keep the background items of your security and IT tools allowed, so employees can't turn them off, and open apps at login. On Windows, run programs and launch packaged apps at logon.

## Platform compatibility

| macOS | Windows | Linux | iOS / iPadOS | Android |
| - | - | - | - | - |
| ✅ | ✅ | | | |

Requires macOS 15 or later.

## Set up the control

**1. Add a configuration**

Go to **MDM** > **Controls** and open **Login items**. Select the platform tab, then click **Add configuration**.

**2. Configure the settings**

Fill in the settings you need for the platform. See the settings below. Configure at least one setting.

**3. Select targeting**

Choose which devices to apply the configuration to: all devices on that platform, specific device groups, or a custom target. Click **Activate** to deploy the configuration. **Save** keeps it inactive.

A setting left empty or on **Not configured** isn't written: the device keeps its own login items. You can add several configurations, for example one per device group.

## Settings

> [tab] macOS
>
> **Allowed background items**
>
> macOS keeps a matching launch agent, daemon or login item allowed: employees can't turn it off in **Login Items & Extensions**. Click **Add rule** for each item, up to 50 rules:
>
> | Field | Description |
> | - | - |
> | **Match on** | **Team identifier** (default), **Bundle identifier**, **Bundle identifier prefix**, **Launchd label** or **Launchd label prefix** |
> | **Value** | The identifier or label to match, such as `ABCDE12345` or `com.example.agent` |
> | **Signed by team (optional)** | A 10-character team identifier, such as `ABCDE12345`. The rule then matches only items this team signed |
> | **Comment (optional)** | A note for your team, up to 256 characters |
>
> **Apps opened at login**
>
> Click **Add app** and enter the full path of the app, starting with `/`, such as `/Applications/Example.app`. Pick **Shown** or **Hidden** to open the app visible or hidden. Up to 50 apps.
>
> **Login window**
>
> Turn on **Prevent users from skipping login items with the Shift key** so employees can't hold Shift at login to stop login items from opening.

> [tab] Windows
>
> Under **Programs at user logon**:
>
> * **Programs run at user logon**: full command lines, such as `C:\Program Files\Example\agent.exe --tray`. Up to 50 entries.
> * **Packaged apps launched after logon**: package family names, such as `Microsoft.WindowsTerminal_8wekyb3d8bbwe`. The app must declare a startup task. Up to 50 entries.
> * **Ignore the Run list of the device** and **Ignore the RunOnce list of the device**: set to **On** to stop Windows from running the programs listed in the device's Run and RunOnce lists at logon.
>
> On Windows, **Off** writes no value, like **Not configured**.

## How it works

> [tab] macOS
>
> Primo deploys a configuration profile with a payload for each part you configured: background item rules, managed login items, and the login window setting. macOS marks a background item that matches a rule as managed, and the employee can't turn it off in **Login Items & Extensions**. The apps you listed open at the employee's next login.
>
> macOS combines the background item rules of every profile on the Mac. A Login items configuration doesn't remove the rules that other profiles, such as those of your endpoint protection tool, already install.

> [tab] Windows
>
> Primo applies the settings through Windows policies for the whole device. The programs and apps you listed start at each employee's next logon.

## Modify or remove the control

Open the control from **MDM > Controls** to edit a configuration, deactivate it, or add another one.

## Related articles

* [Controls overview](https://docs.getprimo.com/mdm/policies/overview.md)
* [App blocking](https://docs.getprimo.com/mdm/policies/app-blocking.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.