Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
Use app configuration policies in Microsoft Intune to provide custom configuration settings for an iOS/iPadOS app. These configuration settings allow an app to be customized based on the app supplier's direction. Get these configuration settings from the supplier of the app. To configure the app, you specify the settings as keys and values, or as XML containing the keys and values.
As the Microsoft Intune admin, you can control which user accounts are added to Microsoft 365 (Office) applications on managed devices. You can limit access to only allowed organization user accounts and block personal accounts on enrolled devices. The supporting applications process the app configuration and remove and block unapproved accounts. The configuration policy settings are used when the app checks for them, typically the first time it's run.
After you add an app configuration policy, set the assignments for the app configuration policy. When you set the assignments for the policy, you can choose to use a filter and to include and exclude the groups of users for which the policy applies. When you choose to include groups, you can select specific groups to include or select built-in groups. Built-in groups include All Users, All Devices, and All Users + All Devices.
Note
Intune provides precreated All Users and All Devices groups in the console with built-in optimizations for your convenience. We recommend that you use these groups to target all users and all devices instead of any 'All users' or 'All devices' groups you created yourself.
After you select the included groups for your application configuration policy, you can choose the specific groups to exclude. For more information, see Include and exclude app assignments in Microsoft Intune.
Tip
This policy type is currently available only for devices running iOS/iPadOS 8.0 and later. It supports the following app installation types:
- Managed iOS/iPadOS app from the app store
- App package for iOS
For more information about app installation types, see How to add an app to Microsoft Intune. For more information about incorporating app config into your .ipa app package for managed devices, see Managed App Configuration in the iOS developer documentation.
Create an app configuration policy
Sign in to the Microsoft Intune admin center.
Select Apps > Configuration > Create > Managed devices. Choose between Managed devices and Managed apps. For more information, see Apps that support app configuration.
On the Basics page, set the following details:
- Name. The name of the profile that appears in the Microsoft Intune admin center.
- Description. The description of the profile that appears in the Microsoft Intune admin center.
- Device enrollment type. This setting is set to Managed devices.
For Platform, select iOS/iPadOS.
Next to Targeted app, select Select app. The Associated app pane displays.
Note
App configuration policies only support MDM-managed apps. You can't use app configuration policies to configure DDM apps.
On the Targeted app pane, choose the managed app to associate with the configuration policy and select OK.
Select Next to display the Settings page.
In the dropdown box, select Configuration settings format. Select one of the following methods to add configuration information:
- Use configuration designer
- Enter XML data
For details about the configuration designer, see Use configuration designer. For details about entering XML data, see Enter XML data.
Select Next to display the Scope tags page.
(Optional) Configure scope tags for your app configuration policy. For more information, see Use role-based access control (RBAC) and scope tags for distributed IT.
Select Next to display the Assignments page.
On the Assignments page, select Add groups, Add all users, or Add all devices to assign the app configuration policy. After you select an assignment group, select a filter to refine the assignment scope when deploying app configuration policies for managed devices.
Select All users in the dropdown box.
(Optional) Select Edit filter to add a filter and refine the assignment scope.
Select Select groups to exclude to display the related pane.
Choose the groups you want to exclude and then select Select.
Note
When you add a group, if you include any other group for a given assignment type, it's preselected and unchangeable for other include assignment types. You can't use that group as an excluded group.
Select Next to display the Review + create page.
Select Create to add the app configuration policy to Intune.
Use configuration designer
Microsoft Intune provides configuration settings that are unique to an app. You can use the configuration designer for apps on devices that are enrolled or not enrolled in Microsoft Intune. The designer lets you configure specific configuration keys and values that help you create the underlying XML. You must also specify the data type for each value. These settings are supplied to apps automatically when the apps are installed.
Add a setting
For each key and value in the configuration, set:
- Configuration key. The case sensitive key that uniquely identifies the specific setting configuration.
- Value type. The data type of the configuration value. Types include Integer, Real, String, or Boolean.
- Configuration value. The value for the configuration.
Select OK to set your configuration settings.
Delete a setting
- Select the ellipsis (...) next to the setting.
- Select Delete.
The {{ and }} characters are used by token types only and must not be used for other purposes.
Allow only configured organization accounts in apps
As the Microsoft Intune administrator, you can control which work or school accounts are added to Microsoft apps on managed devices. You can limit access to only allowed organization user accounts and block personal accounts in the apps, if supported, on enrolled devices. For iOS/iPadOS devices, use the following key/value pairs in a Managed Devices app configuration policy:
| Key | Values |
|---|---|
| IntuneMAMAllowedAccountsOnly |
|
| IntuneMAMUPN |
|
| IntuneMAMOID |
|
Note
The IntuneMAMUPN and IntuneMAMOID configuration keys are automatically configured for some MAM enabled apps. For more information, see Device Management types.
Note
The following apps process the above app configuration and only allow organization accounts:
- Copilot for iOS (28.1.420324001 and later)
- Edge for iOS (44.8.7 and later)
- Office, Word, Excel, PowerPoint for iOS (2.41 and later)
- OneDrive for iOS (10.34 and later)
- OneNote for iOS (2.41 and later)
- Outlook for iOS (2.99.0 and later)
- Teams for iOS (2.0.15 and later)
Require configured organization accounts in apps
On enrolled devices, organizations can require that users sign in with their work or school account to managed Microsoft apps to receive organizational data from other managed apps.
Suppose a user has attachments included in email messages in the managed email profile located in the native iOS mail client. If the user attempts to transfer the attachments to a Microsoft app, like Office, that is managed on the device and has these keys applied, this configuration treats the transferred attachment as Org data, requiring the work or school account to be signed in and enforcing the app protection policy settings.
For iOS/iPadOS devices, use the following key/value pairs in a Managed Devices app configuration policy for each Microsoft app:
| Key | Values |
|---|---|
| IntuneMAMRequireAccounts |
|
| IntuneMAMUPN |
|
Note
Apps must have Intune APP SDK for iOS version 12.3.3 or later and be targeted with an Intune app protection policy when requiring sign-in to work or school account. Within the app protection policy, set the Receive data from other apps value to All apps with incoming Org data.
At this time, app sign-in is only required when there's incoming Org data to a targeted app.
Enter XML data
You can type or paste an XML property list that contains the app configuration settings for devices enrolled in Intune. The format of the XML property list varies depending on which app you configure. For details about the exact format to use, contact the supplier of the app.
Intune validates the XML format. Intune doesn't check that the XML property list (PList) works with the target app.
For more information, see Understand XML Property Lists.
Example format for an app configuration XML file
When you create an app configuration file, use the following format to specify one or more of these values:
<dict>
<key>userprincipalname</key>
<string>{{userprincipalname}}</string>
<key>mail</key>
<string>{{mail}}</string>
<key>partialupn</key>
<string>{{partialupn}}</string>
<key>accountid</key>
<string>{{accountid}}</string>
<key>deviceid</key>
<string>{{deviceid}}</string>
<key>userid</key>
<string>{{userid}}</string>
<key>username</key>
<string>{{username}}</string>
<key>serialnumber</key>
<string>{{serialnumber}}</string>
<key>serialnumberlast4digits</key>
<string>{{serialnumberlast4digits}}</string>
<key>udidlast4digits</key>
<string>{{udidlast4digits}}</string>
<key>aaddeviceid</key>
<string>{{aaddeviceid}}</string>
<key>IsSupervised</key>
<string>{{IsSupervised}}</string>
</dict>
Supported XML PList data types
Intune supports the following data types in a property list:
- <integer>
- <real>
- <string>
- <array>
- <dict>
- <true /> or <false />
Tokens used in the property list
Intune also supports the following token types in the property list:
- {{userprincipalname}}, for example, John@contoso.com
- {{mail}}, for example, John@contoso.com
- {{partialupn}}, for example, John
- {{accountid}}, for example, fc0dc142-71d8-4b12-bbea-bae2a8514c81
- {{deviceid}}, for example, b9841cd9-9843-405f-be28-b2265c59ef97
- {{userid}}, for example, 00aa00aa-bb11-cc22-dd33-44ee44ee44ee
- {{username}}, for example, John Doe
- {{serialnumber}}, for example, F4KN99ZUG5V2 (for iOS/iPadOS devices)
- {{serialnumberlast4digits}}, for example, G5V2 (for iOS/iPadOS devices)
- {{aaddeviceid}}, for example, ab0dc123-45d6-7e89-aabb-cde0a1234b56
- {{issupervised}}, for example, True (for iOS/iPadOS devices)
- {{OnPremisesSamAccountName}}, for example, contoso\John
Configure the Company Portal app to support iOS and iPadOS devices enrolled with Automated Device Enrollment
By default, Apple's Automated Device Enrollments aren't compatible with the app store version of the Company Portal app. You can configure the Company Portal app to support iOS and iPadOS ADE devices even when users download the Company Portal from the App Store by using the following steps.
In Microsoft Intune admin center, add the Intune Company Portal app if you haven't already. Select Apps > All Apps > Create > iOS Store App.
Go to Apps > Configuration to create an app configuration policy for the Company Portal app.
Create an app configuration policy that includes the following XML. For more information, see Add app configuration policies for managed iOS/iPadOS devices.
Use the Company Portal on an Automated Device Enrollment (ADE) device enrolled with user affinity:
Note
When the enrollment profile has Install Company Portal set to Yes, Intune automatically pushes the following application configuration policy as part of the initial enrollment process. Don't manually deploy this configuration to users or devices because it causes a conflict with the payload already sent during enrollment. This conflict results in users being asked to download a new management profile after signing in to Company Portal. Users shouldn't get this prompt because there's a management profile already installed on these devices.
<dict> <key>IntuneCompanyPortalEnrollmentAfterUDA</key> <dict> <key>IntuneDeviceId</key> <string>{{deviceid}}</string> <key>UserId</key> <string>{{userid}}</string> </dict> </dict>Use the Company Portal on an ADE device enrolled without user affinity, also known as Device Staging:
Note
The user signing in to Company Portal is set as the primary user of the device.
<dict> <key>IntuneUDAUserlessDevice</key> <string>{{SIGNEDDEVICEID}}</string> </dict>
Deploy the Company Portal to devices with the app configuration policy targeted to desired groups. Only deploy the policy to groups of devices that are already ADE enrolled.
Tell users to sign in to the Company Portal app when it's automatically installed.
Note
When you add an app configuration to allow the Company Portal app on ADE devices without user affinity, you might experience a STATE Policy Error. Unlike other app configurations, this error doesn't occur every time the device checks in. This app configuration is meant to be a one-time operation to enable existing devices enrolled without user affinity to attain user affinity when a user signs into the Company Portal.
This app configuration is removed from the policy in the background after it has been successfully applied. The policy assignment exists, but it doesn't report success after the app configuration is removed in the background. After the app configuration policy has applied to the device, you can unassign the policy.
Monitor iOS/iPadOS app configuration status per device
After you assign a configuration policy, monitor the iOS/iPadOS app configuration status for each managed device. In Microsoft Intune in the Microsoft Intune admin center, select Devices > All devices. From the list of managed devices, select a specific device to display a pane for the device. On the device pane, select App configuration.