Skip to main content

Apple Safari Extension Policy

Overview

The Apple Safari Extension Policy manages Safari extensions on Macs. Use it to:

  • turn on Swif Browser Security, Swif's Safari extension, for users on the assigned Macs

  • keep other Safari extensions on, so users can't turn them off

  • block Safari extensions you don't allow

This policy doesn't install other extensions. Apple's Safari extension settings only manage extensions whose app is already installed on the Mac. To manage another extension, install its app first: as a VPP app from Apple Business Manager, from the App Store, or as a custom app in Swif. Then this policy can keep it on, or block it. See Install Apple Business VPP Apps.


Requirements

Item

Details

Platform

macOS 15 or later, with the latest Safari

Device ownership

Company-owned and BYOD


Settings reference

Setting

What it does

Default

Enable Swif Safari Extension

Turns Swif Browser Security on or off for users on the assigned Macs

On

Always On Extensions

Safari extensions to turn on, and keep on, each as BundleID (TeamID). The extension's app must already be installed.

Empty

Block Extensions

Safari extensions users can't turn on, each as BundleID (TeamID)

Empty

Enable Swif Safari Extension

Turns on Swif Browser Security, Swif's Safari extension, which helps you see which SaaS apps and AI services your users visit, block the ones you don't allow, and catch unapproved sign-ups.

Whether users need to approve the extension depends on how the Mac was enrolled:

Enrollment method

Result

User approval needed?

Enrollment SSO

The extension is installed and approved automatically.

No

Automated Device Enrollment (ADE)

The installer is installed, but the extension may not be installed or approved automatically.

Yes, if installed

Regular Swif enrollment

The extension is installed.

Yes, in Safari

BYOD (agent installer)

The extension is installed.

Yes, in Safari

To approve it, users go to Safari > Settings > Extensions, select Swif Browser Security, turn it on, and grant the permissions it asks for.

Always On Extensions

Turns on the Safari extensions you list, and keeps them on. Users can't turn them off in Safari > Settings > Extensions.

Use it for extensions your organization relies on, such as a password manager, or a security tool.

It can't install an extension. The extension's Mac app must already be on the Mac. Deploy it as a VPP app from Apple Business Manager, which installs it silently on company-owned Macs, or as a custom app in Swif. Users can also install it from the App Store. See Install Apple Business VPP Apps, and Installing Custom Software via Swif. If it isn't, the extension stays off until the app is installed.

List each extension by its bundle ID and Team ID. See Find an extension's bundle ID and Team ID.

Block Extensions

Turns off the Safari extensions you list. Users can't turn them on in Safari > Settings > Extensions.

List each extension by its bundle ID and Team ID. See Find an extension's bundle ID and Team ID.


Find an extension's bundle ID and Team ID

Always On Extensions and Block Extensions identify each extension by its bundle ID, and the developer's Team ID, in this format:

BundleID (TeamID)

For example: com.example.app.extension (ABCD1234).

To find them, on a Mac with the extension installed, run:

pluginkit -mAvvv -p com.apple.Safari.web-extension

Each extension in the output shows its bundle ID, and its Path. The number in parentheses after the bundle ID is the extension's version, not its Team ID.

If the extension doesn't appear, open its app once, then run the command again.

To get the Team ID, run this with the extension's path:

codesign -dv "/path/to/Extension.appex" 2>&1 | grep TeamIdentifier

It shows a line such as TeamIdentifier=ABCD1234. Use the value after =.


Create the policy

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

  2. Select Apple Safari Extension Policy.

  3. Keep Enable Swif Safari Extension on, to turn on Swif Browser Security.

  4. Add any extensions to keep on to Always On Extensions, as BundleID (TeamID).

  5. Add any extensions to block to Block Extensions, as BundleID (TeamID).

  6. Save the policy, and assign it to your Macs.


Example configurations

Example 1: Turn on Swif Browser Security

Setting

Value

Enable Swif Safari Extension

On

Example 2: Keep a password manager on, and block an ad blocker

Setting

Value

Enable Swif Safari Extension

On

Always On Extensions

com.example.passwords.safari (ABCD1234)

Block Extensions

com.example.adblocker.extension (EFGH5678)

The password manager's Mac app must already be installed. Deploy it first, for example as a VPP app from Apple Business Manager.


Verify the policy

  1. On the Mac, go to System Settings > General > Device Management, and check that the Swif profile is installed.

  2. In Safari, go to Safari > Settings > Extensions:

    • Swif Browser Security should be listed. If users need to approve it, it appears turned off until they turn it on.

    • Always-on extensions should be turned on, and can't be turned off.

    • Blocked extensions should be turned off, and can't be turned on.

In Swif, open the device, and confirm that the policy shows as applied.


Troubleshooting

Swif Browser Security isn't installed

  • Check that the Mac runs macOS 15 or later.

  • Check that the policy is assigned, with Enable Swif Safari Extension on.

  • On Macs enrolled with Automated Device Enrollment, the extension may not install automatically. Ask the user to install and approve it in Safari.

Swif Browser Security is installed, but turned off

The user needs to approve it. In Safari > Settings > Extensions, select Swif Browser Security, turn it on, and grant its permissions.

An always-on extension doesn't appear, or isn't on

  • Check that the extension's app is installed on the Mac. This policy can't install it.

  • Check the entry's format: BundleID (TeamID), with a space before the parentheses.

  • Check that the bundle ID is the extension's, not its app's, and the Team ID comes from codesign. See Find an extension's bundle ID and Team ID.

  • Check that the policy shows as applied on the Mac.

A blocked extension still works

  • Check the entry's format: BundleID (TeamID), with a space before the parentheses.

  • Check that the bundle ID is the extension's, not its app's. Use pluginkit, as in Find an extension's bundle ID and Team ID.

  • Check that the value in parentheses is the Team ID from codesign, not the version number pluginkit shows.

  • Check that the policy shows as applied on the Mac.

I want to install another Safari extension

This policy can't install it. Install the extension's app first: as a VPP app from Apple Business Manager, or as a custom app in Swif. See Install Apple Business VPP Apps. Then add the extension to Always On Extensions, to turn it on, and keep it on.


Related resources

Did this answer your question?