> ## 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 sessions

> Make every user's home folder private on managed Macs, so no other user of the Mac can open it or read its files.

The Login sessions control makes every user's home folder private on your Macs: other users of the Mac can no longer open it or read its files. It can also give the folders inside each home folder Apple's default permissions.

## 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**, open **Login sessions**, then click **Add configuration**.

**2. Configure the settings**

**Private home folders** is always on. Turn on **Apple's default permissions on the folders inside home folders** if you also want the folders inside each home folder reset. See the settings below.

**3. Select targeting**

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

## Settings

| Setting | Options |
| - | - |
| **Private home folders** | Always **On** |
| **Apple's default permissions on the folders inside home folders** | **On**, **Off** |

* **Private home folders** takes the read and open rights of other users off every user's home folder. A folder closed this way also shuts its **Public** folder, and its **Drop Box**, to other users. The **Shared** and **Guest** folders are left as they are, and so is a home folder that is already private.
* **Apple's default permissions on the folders inside home folders** sets the folders macOS creates in each home folder back to Apple's defaults: **Desktop**, **Documents**, **Downloads**, **Library**, **Movies**, **Music** and **Pictures** open to their owner only, **Public** not writable by other users, and no other user can delete the home folder or these folders. **Off** leaves the folders inside a home folder as they are.

## How it works

Primo runs a script on the Mac that changes the permissions of each home folder, and of the folders inside it when the option is on. A check runs on the Mac regularly: when a folder is open again, or a new user's folders were created since, the script runs again.

The script records each folder it changed. When you remove the control, Primo puts each of those folders back as it was.

> [!NOTE]
>
> Turning **Apple's default permissions on the folders inside home folders** off in an edit leaves the folders inside home folders as the option set them. Removing the control puts them back.

## Modify or remove the control

Open the control from **MDM > Controls** to edit, deactivate or replace the configuration.

## Related articles

* [Controls overview](https://docs.getprimo.com/mdm/policies/overview.md)
* [Manage admin accounts](https://docs.getprimo.com/mdm/policies/manage-admin-accounts.md)
* [Sign-in screen](https://docs.getprimo.com/mdm/policies/sign-in-screen.md)


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