IntuneHow-to

App configuration policies in Intune for iOS and Android: managed devices vs managed apps

How Intune app configuration reaches iOS and Android apps through the managed devices and managed apps channels, which keys and tokens to use, and how to prove what the app received.

App configuration policies preconfigure mobile apps, so users open Outlook, Edge or Teams and find them already set up with the work account and your settings. Intune offers two kinds, Managed devices and Managed apps, and picking the wrong one is an easy way to make sure a setting never arrives. In this post I'll explain both channels, build a policy for each, and show how to prove what the app actually received.

Errors this guide fixes

  • STATE Policy ErrorIntune admin center (app configuration status)
How this guide is organized: How it works → Prerequisites → Step-by-step → Verify → Tips & gotchasFlow diagram of the article's sections in reading order: 1. How it works. 2. Prerequisites. 3. Step-by-step (3 steps: iOS/iPadOS: allow only the work account; Android Enterprise: pick the enrollment type first; Any device: a managed apps policy). 4. Verify. 5. Tips & gotchas. Toolbox: Configuration › Create, Devices › All devices, IntuneMAMAllowedAccountsOnly, IntuneMAMUPN, IntuneMAMOID.1How it works2Prerequisites3Step-by-step4Verify5Tips & gotchas1iOS/iPadOS: allow onlythe work account2Android Enterprise: pickthe enrollment type first3Any device: a managedapps policyTOOLBOXConfiguration › CreateDevices › All devicesIntuneMAMAllowedAccountsOnlyIntuneMAMUPNIntuneMAMOIDHow this guide is organized: How it works → Prerequisites → Step-by-step → Verify → Tips & gotchasFlow diagram of the article's sections in reading order: 1. How it works. 2. Prerequisites. 3. Step-by-step (3 steps: iOS/iPadOS: allow only the work account; Android Enterprise: pick the enrollment type first; Any device: a managed apps policy). 4. Verify. 5. Tips & gotchas. Toolbox: Configuration › Create, Devices › All devices, IntuneMAMAllowedAccountsOnly, IntuneMAMUPN, IntuneMAMOID.1How it works2Prerequisites3Step-by-step1iOS/iPadOS: allow only the work account2Android Enterprise: pick the enrollment typefirst3Any device: a managed apps policy4Verify5Tips & gotchasTOOLBOXConfiguration › CreateDevices › All devicesIntuneMAMAllowedAccountsOnlyIntuneMAMUPNIntuneMAMOID
At a glance: how this guide is organized · 3 steps · 5 key settings and tools

How it works#

The two channels that carry app configuration to mobile appsIntune admin center: Managed devices policy, Managed apps policy. Channel: OS management channel, Intune App SDK (MAM). Mobile app: App deployed by Intune, SDK-enabled or wrapped app. Connections: 1. Managed devices policy → OS management channel: Apple managed app config or Android managed configurations. 2. Managed apps policy → Intune App SDK (MAM): General, S/MIME and data protection settings. 3. OS management channel → App deployed by Intune: Keys and values defined by the app's developer. 4. Intune App SDK (MAM) → SDK-enabled or wrapped app: Checked every 30 minutes with app protection, else 720.INTUNE ADMIN CENTERManaged devicespolicyiOS/iPadOS or AndroidEnterpriseManaged apps policyAssigned to user groupsCHANNELOS managementchannelNeeds an enrolled deviceIntune App SDK (MAM)Enrollment doesn't matterMOBILE APPApp deployed byIntuneMDM-managed, notdelivered by DDMSDK-enabled orwrapped appIntune App SDK or AppWrapping Tool1234CONNECTIONS1Managed devices policy → OS management channel: Apple managed app config or Android managed configurations2Managed apps policy → Intune App SDK (MAM): General, S/MIME and data protection settings3OS management channel → App deployed by Intune: Keys and values defined by the app's developer4Intune App SDK (MAM) → SDK-enabled or wrapped app: Checked every 30 minutes with app protection, else 720The two channels that carry app configuration to mobile appsIntune admin center: Managed devices policy, Managed apps policy. Channel: OS management channel, Intune App SDK (MAM). Mobile app: App deployed by Intune, SDK-enabled or wrapped app. Connections: 1. Managed devices policy → OS management channel: Apple managed app config or Android managed configurations. 2. Managed apps policy → Intune App SDK (MAM): General, S/MIME and data protection settings. 3. OS management channel → App deployed by Intune: Keys and values defined by the app's developer. 4. Intune App SDK (MAM) → SDK-enabled or wrapped app: Checked every 30 minutes with app protection, else 720.INTUNE ADMIN CENTERManaged devices policyiOS/iPadOS or Android EnterpriseManaged apps policyAssigned to user groupsCHANNELOS management channelNeeds an enrolled deviceIntune App SDK (MAM)Enrollment doesn't matterMOBILE APPApp deployed by IntuneMDM-managed, not delivered by DDMSDK-enabled or wrapped appIntune App SDK or App Wrapping ToolCONNECTIONS1Managed devices policy → OS management channel:Apple managed app config or Android managedconfigurations2Managed apps policy → Intune App SDK (MAM):General, S/MIME and data protection settings3OS management channel → App deployed by Intune:Keys and values defined by the app's developer4Intune App SDK (MAM) → SDK-enabled or wrappedapp: Checked every 30 minutes with app protection,else 720
Figure 1 · Architecture The two channels that carry app configuration to mobile apps. Pick the policy kind by channel: Managed devices needs an enrolled device, Managed apps needs an app built with the Intune App SDK.

Both kinds are created under Apps › Configuration › Create in the Microsoft Intune admin center, but they travel differently:

Managed devicesManaged apps
ChannelThe OS management channel: Apple's managed app configuration, or Android Enterprise managed configurationsThe Intune App SDK (MAM) channel
Device must be enrolledYesNo; enrollment state and install source don't matter
App requirementsiOS: deployed by Intune and managed by the MDM profile. Android: Managed Google Play or a directly deployed line-of-business appBuilt with the Intune App SDK or wrapped with the App Wrapping Tool
Typical usesAllow only work accounts, account setup, general settings, S/MIMEGeneral settings, S/MIME, extra data protection settings that extend app protection

Keys and values are defined by the app's developer, not by Intune, so the vendor's documentation is the source for what each app supports. Managed apps check for configuration every 30 minutes when the user also has an app protection policy, and every 720 minutes without one.

Prerequisites#

  • For managed devices: the device is enrolled and the app is assigned through Intune. App configuration policies apply to MDM-managed apps only; they can't configure apps delivered through declarative device management.
  • For managed apps: the app supports the Intune App SDK, and Android devices run Android 10.0 or later.
  • The keys for each app. Microsoft publishes them for Outlook, Edge, Teams and the Microsoft 365 app.

Step-by-step#

1. iOS/iPadOS: allow only the work account#

Create a Managed devices policy, choose platform iOS/iPadOS and pick the targeted app (for example Outlook). With Use configuration designer, add these keys as strings:

KeyValue
IntuneMAMAllowedAccountsOnlyEnabled
IntuneMAMUPN{{userprincipalname}}
IntuneMAMOID{{userid}}

The app then accepts only the enrolled user's account and removes or blocks others. Microsoft lists minimum versions for the apps that honor this, including Outlook, Edge, Teams, OneDrive, OneNote, the Office apps and Copilot. To also require the work account before the app receives organization data from other managed apps, add IntuneMAMRequireAccounts set to Enabled. That needs an app protection policy with Receive data from other apps set to All apps with incoming Org data.

Configuration keys are case sensitive, and value types are Integer, Real, String or Boolean. If you prefer Enter XML data, paste a property list. These tokens are supported:

XML
<dict>
  <key>userprincipalname</key><string>{{userprincipalname}}</string>
  <key>mail</key><string>{{mail}}</string>
  <key>partialupn</key><string>{{partialupn}}</string>
  <key>userid</key><string>{{userid}}</string>
  <key>deviceid</key><string>{{deviceid}}</string>
  <key>serialnumber</key><string>{{serialnumber}}</string>
  <key>IsSupervised</key><string>{{IsSupervised}}</string>
</dict>

The full list also includes {{accountid}}, {{username}}, {{serialnumberlast4digits}}, {{udidlast4digits}}, {{aaddeviceid}} and {{OnPremisesSamAccountName}}. Don't use double braces for anything other than tokens. Intune checks that the XML is well formed, not that the app understands it.

2. Android Enterprise: pick the enrollment type first#

Create a Managed devices policy for Android Enterprise and choose the profile type: All Profile Types, Fully Managed, Dedicated, and Corporate-Owned Work Profile Only, or Personally-Owned Work Profile Only. Only the last two let you link a certificate profile, so don't pick All Profile Types if the app uses certificate-based authentication. Then select a Managed Google Play app that supports configuration and use the configuration designer or JSON. The same policy can preset runtime permissions (Prompt, Auto grant, Auto deny), although from Android 12 several sensitive permissions, such as camera and location, can't be auto-granted on corporate-owned work profile or dedicated devices. Android uses its own keys for allowed accounts, listed in Microsoft's Android app configuration documentation.

3. Any device: a managed apps policy#

Create a Managed apps policy, pick the apps (for example Edge on iOS and Android) and add general settings as name and value pairs, such as com.microsoft.intune.mam.managedbrowser.homepage or com.microsoft.intune.mam.managedbrowser.bookmarks with Outlook Web|https://outlook.office.com. Assign it to user groups that also have an app protection policy, so it's picked up on the 30-minute cycle.

Verify#

  • Admin center: the policy's overview shows status by device and by user. For managed devices, open Devices › All devices, select the device and then App configuration to see every assigned policy and its state.
  • iOS/iPadOS logs: in Edge, open about:intunehelp, select Get Started and Share Logs, then search IntuneMAMDiagnostics.txt for ApplicationConfiguration (managed apps) or AppConfig (managed devices).
  • Android logs: copy OMADMLog_0 from Android\data\com.microsoft.windowsintune.companyportal\Files over USB and search for AppConfigHelper. A good result lists your keys:
Text
INFO AppConfigHelper ... Returning app config JSON [ {"ApplicationConfiguration": [ {"Name":"IntuneMAMUPN","Value":"adele@contoso.com"}, ...

If the log shows your value and the app still ignores it, the issue is in how the app handles the key, so check with the app's developer.

Tips & gotchas#

  • One owner per key. Don't set the same key in a managed devices and a managed apps policy for the same users; if you must, check the logs to see which value the app received.
  • Users can win. Some settings respect the user's choice. Outlook's Focused Inbox setting, for example, can be changed by the user despite your policy.
  • Android LOB updates. When you update a directly deployed Android line-of-business app, policies for the old version don't follow it. Create and assign a policy for the new version.
  • Dedicated devices have no user. Gmail or Nine configuration on a dedicated device fails because Intune can't resolve a user.
  • Company Portal on userless ADE devices. The one-time Company Portal configuration that gives devices enrolled without user affinity a user can show STATE Policy Error, and it stops reporting success once applied. That's expected; unassign it after it has applied.

References#

Written and checked against current Microsoft Learn documentation. Test changes with a pilot group before rolling them out to everyone, and if an admin center path has moved since, search for the setting name instead.

Spotted a mistake, or did this fix work differently for you? Email me or message me on LinkedIn — corrections are credited in the article.

Written by

Omer Eltayeb

M365 Subject Matter Expert, former Microsoft Cloud Solutions Architect, Microsoft Certified Trainer and Microsoft Innovative Educator Expert (2024–26) and Microsoft Elevate Educator Expert (2026–27). I share practical, step-by-step guides, study plans, scripts and toolkits for Microsoft Intune, Configuration Manager, Microsoft Entra ID, Microsoft Defender, Exchange and Microsoft 365 with the community.

Microsoft Certified Trainer (MCT) 2026Microsoft Innovative Educator Expert 2025–2026Microsoft Elevate Educator Expert 2026–2027ISC2 Certified Information Systems Security Professional (CISSP)Microsoft 365 Certified: Enterprise Administrator Expert (MS-102)