Skip to main content

Apple FileVault Policy

The Apple FileVault Policy turns on FileVault, Apple's full-disk encryption, on your Macs, and stores each Mac's personal recovery key (PRK) in Swif. If a user forgets their password, or a Mac needs recovery, an admin can find the key in Swif.

Goal

How the policy helps

Encrypt every Mac

Turns on FileVault when the Mac checks in

Keep recovery keys

Stores each Mac's recovery key in Swif, where only authorized admins can see it, and lets you rotate it

Keep FileVault on

Can stop users from turning FileVault off, or from putting off turning it on

Compliance evidence

Reports each Mac's encryption status to the Compliance Center, and to compliance integrations such as Drata

​

Requirements: company-owned Macs, running macOS 10.13 or later. The policy isn't available for BYOD Macs.


​

Create the policy

  1. In Swif, go to Device Management > Policies, then select Create new policy > Configure a Policy.

  2. Select Apple FileVault Policy.

  3. Fill in the settings, then continue to assign the policy.

Setting

Default

What it does

Encryption Enable

On

Turns FileVault on. Keep it on for almost every deployment.

Recovery Key Escrow

On

Stores the recovery key in Swif. Keep this on. It's also needed to replace keys from a previous MDM. See Moving Macs from another MDM. If you save the policy without setting it, Swif turns it on.

Maximum number of times FileVault can be skipped

Not set

How many times users can choose to turn FileVault on later, at sign-in, from -1 to 9999. 0 means they must turn it on at their next sign-in. -1 turns off this requirement, so users aren't asked at sign-in.

Prevent Disabling FileVault

Off

Stops users from turning FileVault off

Prevent Enabling FileVault

Off

Keeps FileVault off. Rarely used, for special-purpose Macs only.

Show Recovery Key

On

Shows the user their recovery key, after FileVault turns on. Turn it off, if only admins should have the key, in Swif.

​

Settings that aren't set leave the Mac's own setting as it is.


​

How FileVault turns on

Step

What happens on the Mac

The policy installs

Swif tells the Mac to turn on FileVault

The user signs in

macOS asks the user to turn on FileVault. If skipping is allowed, the user can choose to do it later, up to Maximum number of times FileVault can be skipped.

Encryption starts

The Mac restarts, and encrypts its disk in the background. Apple silicon and T2 Macs encrypt in hardware, with no noticeable slowdown.

The key is stored

The Mac sends its recovery key to Swif

Status updates

The Mac shows as Encrypted in Swif, and in the Compliance Center. If you've connected Drata, Swif sends the status to it every 4 hours.


​

Where to find a Mac's recovery key

Open the Mac in Swif, and go to Security > Encryption > Recovery key.

You see

Meaning

•••••••

Swif has the key. Click the eye icon to show it, if you have permission.

—

Swif doesn't have a key for this Mac. See When Swif doesn't have a key.

​

The console updates a Mac's recovery key about every 8 hours. To update it right away, click Refresh.

​


​

When Swif doesn't have a key

When Swif gets a Mac's recovery key depends on when FileVault was turned on:

FileVault was turned on

How Swif gets the key

When

After the FileVault policy was installed

macOS sends the key to Swif when it creates it

Right away. Nothing to do.

Before the FileVault policy was installed, by the user, another MDM, or before Swif managed the Mac

Swif can't read the existing key, since macOS doesn't share it. So Swif replaces it with a new one, in a few steps.

Usually within minutes, but it can take a day or more. See below.

​

How Swif replaces an existing key

  1. The Swif agent replaces the key, using Swif's administrator account on the Mac. That account needs a Secure Token. The user doesn't need to do anything.

  2. If that doesn't work, for example because Swif's administrator account is locked, the Swif desktop app shows FileVault Recovery Key Required. The user enters their Mac password, and the key is replaced. No restart or sign-out is needed.

  3. If the user closes the prompt, Swif tries again every 24 hours, from step 1.

​

The new key is stored in Swif, and the old one stops working.

Requirement

Details

Swif's administrator account

Must be on the Mac, with a Secure Token, for step 1. If it's missing, turned off, locked, or has no Secure Token, only the user's prompt can replace the key.

The user's Secure Token, for step 2

Accounts that turned on FileVault, or were created with an administrator's password, usually have one

Standard users, for step 2

Need an administrator's name and password to complete the prompt

​

For the full process, and what to do if it doesn't finish, see How to Refresh the FileVault Recovery Key on macOS.

​

Another prompt: Secure Token Required

Until Swif's administrator account on the Mac has a Secure Token, the Swif desktop app also shows Secure Token Required, asking for an administrator's password, about every 10 minutes. An administrator enters their password once to stop it. Swif can then replace the recovery key without asking the user.


​

Moving Macs from another MDM, such as Jamf

Recovery keys stored in Jamf or another MDM can't be imported into Swif. Instead, Swif replaces each Mac's key after it moves:

  1. Assign the Apple FileVault Policy, with Recovery Key Escrow on, to the migrated Macs.

  2. The policy installs. Swif can't read the Mac's current key, so it replaces it, using Swif's administrator account. If that doesn't work, the user gets the FileVault Recovery Key Required prompt. See How Swif replaces an existing key.

  3. The new key is stored in Swif. It replaces the key in your previous MDM, which stops working.

  4. It appears in the console within about 8 hours, or sooner if you click Refresh in the Mac's Security > Encryption section.

Test on one Mac first. Migrate one Mac, and check that the new key appears in Swif. Then migrate the rest. Keep the keys from your previous MDM until each Mac's new key is in Swif.

​

For moving Macs without erasing them, see Migrate Apple Devices to Swif Without Erasing Them.


​

Best practices

  1. Keep Recovery Key Escrow on. Without it, you can't recover a Mac, or replace keys from a previous MDM.

  2. Allow no skips for high-risk groups, such as finance or executives, by setting Maximum number of times FileVault can be skipped to 0.

  3. Turn on Prevent Disabling FileVault, so users can't turn it off.

  4. Use strong passwords. FileVault unlocks with the user's Mac password, so pair this policy with the Apple Password Policy.

  5. Check the Compliance Center for Macs that aren't encrypted. If you use Drata, encryption status syncs to it every 4 hours. See Set up Swif integration with Drata.


​

FAQ

​

Does FileVault slow Macs down?

Not noticeably on Apple silicon or T2 Macs, which encrypt in hardware.

​

What if a Mac was already encrypted?

Swif can't read a key created before the FileVault policy was installed, so it replaces it, using Swif's administrator account, or the user's prompt if that doesn't work. It can take a day or more. See When Swif doesn't have a key.

​

Can I import recovery keys from Jamf or another MDM?

No. Swif replaces each Mac's key instead. See Moving Macs from another MDM.

​

Does the user need to restart?

No. Replacing a key needs one prompt, with no restart or sign-out. Turning on FileVault for the first time does need a restart.


​

Troubleshooting

​

The recovery key shows "—"

Swif doesn't have a key yet. If FileVault was turned on before the FileVault policy was installed, Swif is still replacing the key, which can take a day or more. Check that:

  • Swif's administrator account is on the Mac, and has a Secure Token

  • the user has completed the FileVault Recovery Key Required prompt, if they saw it

​

Then click Refresh in the Mac's Security > Encryption section. See How to Refresh the FileVault Recovery Key on macOS.

​

The user can't complete the prompt

  • Standard user: they need an administrator's name and password.

  • No Secure Token: the user's account needs one. An administrator with a Secure Token can grant it.

​

The Mac keeps asking for an administrator's password

That's the Secure Token Required prompt. It appears about every 10 minutes until Swif's administrator account has a Secure Token. An administrator enters their password once to stop it.

​

The Mac doesn't ask to turn on FileVault

​

FileVault is on, but Swif shows "Unencrypted"


​

Related resources

Did this answer your question?