Require an app protection policy on Windows devices

App protection policies apply mobile application management (MAM) to specific applications on a device. These policies allow for securing data within an application in support of scenarios like bring your own device (BYOD).

Screenshot of a browser requiring the user to sign in to their Microsoft Edge profile to access an application.

Prerequisites

User exclusions

Conditional Access policies are powerful tools, we recommend excluding the following accounts from your policies:

  • Emergency access or break-glass accounts to prevent lockout due to policy misconfiguration. In the unlikely scenario all administrators are locked out, your emergency-access administrative account can be used to log in and take steps to recover access.
  • Service accounts and Service principals, such as the Microsoft Entra Connect Sync Account. Service accounts are non-interactive accounts that aren't tied to any particular user. They're normally used by back-end services allowing programmatic access to applications, but are also used to sign in to systems for administrative purposes. Calls made by service principals won't be blocked by Conditional Access policies scoped to users. Use Conditional Access for workload identities to define policies targeting service principals.
    • If your organization has these accounts in use in scripts or code, consider replacing them with managed identities.

Create a Conditional Access policy

The following policy is put in to Report-only mode to start so administrators can determine the impact they have on existing users. When administrators are comfortable that the policy applies as they intend, they can switch to On or stage the deployment by adding specific groups and excluding others.

Require app protection policy for Windows devices

The following steps help create a Conditional Access policy requiring an app protection policy when using a Windows device accessing the Office 365 apps grouping in Conditional Access. The app protection policy must also be configured and assigned to your users in Microsoft Intune. For more information about how to create the app protection policy, see the article App protection policy settings for Windows. The following policy includes multiple controls allowing devices to either use app protection policies for mobile application management (MAM) or be managed and compliant with mobile device management (MDM) policies.

Tip

App protection policies (MAM) support unmanaged devices:

  • If a device is already managed through mobile device management (MDM), then Intune MAM enrollment is blocked, and app protection policy settings aren't applied.
  • If a device becomes managed after MAM enrollment, app protection policy settings are no longer applied.
  1. Sign in to the Azure portal as at least a Conditional Access Administrator.
  2. Browse to Microsoft Entra ID > Security > Conditional Access.
  3. Select Create new policy.
  4. Give your policy a name. We recommend that organizations create a meaningful standard for the names of their policies.
  5. Under Assignments, select Users or workload identities.
    1. Under Include, select All users.
    2. Under Exclude, select Users and groups and choose at least your organization's emergency access or break-glass accounts.
  6. Under Target resources > Resources (formerly cloud apps) > Include, select Office 365.
  7. Under Conditions:
    1. Device platforms set Configure to Yes.
      1. Under Include, Select device platforms.
      2. Choose Windows only.
      3. Select Done.
    2. Client apps set Configure to Yes.
      1. Select Browser only.
  8. Under Access controls > Grant, select Grant access.
    1. Select Require app protection policy and Require device to be marked as compliant.
    2. For multiple controls select Require one of the selected controls
  9. Confirm your settings and set Enable policy to Report-only.
  10. Select Create to create to enable your policy.

After administrators confirm the settings using report-only mode, they can move the Enable policy toggle from Report-only to On.

Tip

Organizations should also deploy a policy that blocks access from unsupported or unknown device platforms along with this policy.

Sign in to Windows devices

When users attempt to sign in to a site that is protected by an app protection policy for the first time, they're prompted: To access your service, app, or website, you might need to sign in to Microsoft Edge using username@domain.com or register your device with organization if you're already signed in.

Clicking on Switch Edge profile opens a window listing their Work or school account along with an option to Sign in to sync data.

Screenshot showing the popup in Microsoft Edge asking user to sign in.

This process opens a window offering to allow Windows to remember your account and automatically sign you in to your apps and websites.

Caution

You must CLEAR THE CHECKBOX Allow my organization to manage my device. Leaving this checked enrolls your device in mobile device management (MDM) not mobile application management (MAM).

Don't select No, sign in to this app only.

Screenshot showing the stay signed in to all your apps window. Uncheck the allow my organization to manage my device checkbox.

After selecting OK, you might see a progress window while policy is applied. After a few moments, you should see a window saying You're all set, app protection policies are applied.

Troubleshooting

Common issues

In some circumstances, after getting the "you're all set" page you might still be prompted to sign in with your work account. This prompt might happen when:

  • Your profile is added to Microsoft Edge, but MAM enrollment is still being processed.
  • Your profile is added to Microsoft Edge, but you selected "this app only" on the heads up page.
  • You enrolled into MAM but your enrollment expired or you aren't compliant with your organization's requirements.

To resolve these possible scenarios:

  • Wait a few minutes and try again in a new tab.
  • Contact your administrator to check that Microsoft Intune MAM policies are applying to your account correctly.

Existing account

There's a known issue where there's a pre-existing, unregistered account, like user@contoso.com in Microsoft Edge, or if a user signs in without registering using the Heads Up Page, then the account isn't properly enrolled in MAM. This configuration blocks the user from being properly enrolled in MAM.

Next steps