Create and manage app permission policies
As an admin, you can use app permission policies to control what apps are available to Microsoft Teams users in your organization. You can allow or block all apps or specific apps published by Microsoft, third-parties, and your organization. When you block an app, users who have the policy are unable to install it from the Teams app store. You must be a global admin or Teams service admin to manage these policies.
You manage app permission policies in the Microsoft Teams admin center. You can use the global (Org-wide default) policy or create and assign custom policies to individual users or users in a group.
By default, all apps are allowed in the global policy. This includes apps published by Microsoft, third parties, and your organization. Users in your organization will automatically get the global policy unless you create and assign a custom policy. Organization-wide app settings on the Manage apps page override the global policy and any custom policies that you create and assign to users.
For example, you want to block all third-party apps and allow specific apps from Microsoft for the HR team in your organization. First, you would go to the Manage apps page and make sure that the apps that you want to allow for the HR team are allowed at the org level. Then, create a custom policy named HR App Permission Policy, set it to block and allow the apps that you want, and assign it to users on the HR team.
Create an app permission policy
If you want to control the apps that are available for different groups of users in your organization, create and assign one or more custom app permission policies. You can create and assign separate custom policies based on whether apps are published by Microsoft, third-parties, or your organization. It's important to know that after you create a custom policy, you can't change it if third-party apps are disabled in org-wide app settings.
- In the left-hand navigation pane on the Microsoft Teams admin center, go to Teams apps > Permission policies.
- Select Add.
- Enter a name and description for the policy.
- Under Microsoft apps, Third-party apps, and Custom apps, select one of the following options that is listed in the following graphic:
If you selected Allow specific apps and block all others, add the apps that you want to allow:
- Select Allow apps.
- Search for the app(s) that you want to allow, and then select Add. The search results are filtered to the app publisher (Microsoft apps, Third-party apps, or Tenant apps).
- Once you have chosen the list of apps, select Allow.
Similarly, if you selected Block specific apps and allow all others, search for and add the apps that you want to block.
Select Save.
Edit an app permission policy
You can use the Microsoft Teams admin center to edit a policy, including the global policy and custom policies that you create.
- In the left-hand navigation pane of the Microsoft Teams admin center, go to Teams apps > Permission policies.
- Select the policy by selecting to the left of the policy name, and then select Edit.
- Make the changes that you want. You can manage settings based on the app publisher and add and remove apps based on the allow/block setting.
- Select Save.
Assign a custom app permission policy to users
You can use the Microsoft Teams admin center to assign a custom policy to one or more users. Alternatively, you can use the Skype for Business PowerShell module to assign a custom policy to groups of users, such as all users in a security group or distribution group.
Assign a custom app permission policy to a user
To assign users to app permission policies, you can either assign users to a policy, or you can assign policies to a user.
You should perform the following steps to assign users to a policy:
- In the left-hand navigation pane on the Microsoft Teams admin center, go to Teams apps > Permission policies.
- Select the custom policy by selecting to the left of the policy name.
- Select Assign users.
- In the Managed users pane, search for the user by display name or by user name, select the name, and then select Add. Repeat this step for each user that you want to add.
- When you're finished adding users, select Apply.
Alternatively, you can also perform the following steps to assign a policy to a user:
- In the left-hand navigation pane on the Microsoft Teams admin center, go to Users.
- Select the user by selecting to the left of the username, and then select Edit settings.
- Under App permission policy, select the app permission policy you want to assign, and then select Apply.
Assign a custom app permission policy using Microsoft Graph PowerShell
You may want to assign a custom app permission policy to multiple users with PowerShell for automation. For example, you may want to assign a policy to all users in a security group. You can do this by connecting to the Microsoft Graph PowerShell and using the Grant-CsTeamsAppPermissionPolicy
cmdlet.
Note
Azure AD and MSOnline PowerShell modules are planned for deprecation. The following commands have been updated to use Microsoft Graph PowerShell.
For example, if you want to assign a custom app permission policy called HR App Permission Policy to all users in the Contoso HR Project group, you would run the following command:
# Connect to Microsoft Graph
Connect-MgGraph -Scopes "Group.Read.All", "GroupMember.Read.All"
# Get the group
$group = Get-MgGroup -Filter "displayName eq 'Contoso HR Project'"
# Get the members of the group
$members = Get-MgGroupMember -GroupId $group.Id -All $true | Where-Object { $_.AdditionalData.userType -eq "Member" }
# Grant permissions
$members | ForEach-Object { Grant-CsTeamsAppPermissionPolicy -PolicyName "HR App Permission Policy" -Identity $_.Id }
Depending on the number of members in the group, this command may take several minutes to execute.