Include and exclude app assignments in Microsoft Intune
In Intune, you can determine who has access to an app by assigning groups of users to include and exclude. Before you assign groups to the app, you must set the assignment type for an app. The assignment type makes the app available, required, or uninstalls the app.
To set the availability of an app, you include and exclude app assignments to a group of users or devices by using a combination of include and exclude group assignments. This capability can be useful when you make the app available by including a large group, and then narrow the selected users by also excluding a smaller group. The smaller group might be a test group or an executive group.
As a best practice, create and assign apps specifically for your user groups, and separately for your device groups. For more information on groups, see Add groups to organize users and devices.
Important scenarios exist when including or excluding app assignments:
Exclusion takes precedence over inclusion in the following same group type scenarios:
- Including user groups and excluding user groups when assigning apps
- Including device groups and excluding device group when assigning apps
For example, if you assign a device group to the All corporate users user group, but exclude members in the Senior Management Staff user group, All corporate users except the Senior Management staff get the assignment, because both groups are user groups.
Intune doesn't evaluate user-to-device group relationships. If you assign apps to mixed groups, the results may not be what you want or expect.
For example, if you assign a device group to the All Users user group, but exclude an All personal devices device group. In this mixed group app assignment, All users get the app. The exclusion does not apply.
As a result, it's not recommended to assign apps to mixed groups.
When you set a group assignment for an app, the Not Applicable type is deprecated and replaced with exclude group functionality.
Intune provides pre-created All Users and All Devices groups in the console. The groups have built-in optimizations for your convenience. It's highly recommended that you use these groups to target all users and all devices instead of any "all users" or "all devices" groups that you might create yourself.
Android enterprise supports including and excluding groups. You can leverage the built-in All Users and All Devices groups for Android enterprise app assignment.
Include and exclude groups when assigning apps
To assign an app to groups by using the include and exclude assignment:
Sign in to the Microsoft Endpoint Manager Admin Center.
Select Apps > All apps. The list of added apps is shown.
Select the app that you want to assign. A dashboard displays information about the app.
In the Manage section of the menu, select Assignments.
Select Add group to add the groups of users who are assigned the app.
In the Add group pane, select an Assignment type from the available assignment types.
For the assignment type, select Available with or without enrollment.
Select Included Groups to select the group of users that you want to make this app available to.
When you add a group, if any other group has already been included for a specific assignment type, the app is preselected and can't be modified for other include assignment types. The group that has been used can't be used as an included group.
Select Yes to make this app available to all users.
Select OK to set the group to include.
Select Excluded Groups to select the groups of users that you want to make this app unavailable to.
Select the groups to exclude. This makes this app unavailable to those groups.
Select Select to complete your group selection.
In the Add group pane, select OK. The app Assignments list appears.
Click Save to make your group assignments active for the app.
When you make group assignments, groups that have already been assigned aren't available to be modified. If you want to select a group that currently isn't available, first remove the app from the app’s assigned list.
To edit assignments, in the app Assignments list, select the row that contains the specific assignment that you want to change. You can also remove an assignment by selecting the ellipse (…) at the end of a row, and then selecting Remove. To change the view of the Assignments list, group by Assignment type or by Included/Excluded.