Preinstall apps for your users

Admins can install Microsoft Teams apps that work on Microsoft Outlook and the Microsoft 365 app (formerly known as Office.com) for some or all users in their organization. You can easily preinstall the apps on the supported hosts so that your users receive the apps easily. Alternately, users install apps on their own if you make apps available to users for use. You can proactively install apps for users so that you help them discover apps easily, ensure app retention, and save user's effort to install. For example, you can install IT helpdesk or ticketing app for all new employees to provide an easy and quick way for the new joiners to seek IT support.

Preinstall apps in user's Teams client

Unified app management changes a few app governance methods. Previously, you used app setup policy to preinstall apps for users. If your organization is now migrated to use app centric management feature, then you use it to preinstall apps. Follow the applicable method to provide apps to your users, without them having to install apps on their own.

You can't preinstall certain apps for users because many of these apps do not support the scopes required for admin installation. You can't select these apps in the Setup policies page and are denoted as -- in the Manage apps page when migrated to app centric management.

Install apps using app setup policy

Note

  • Once app centric management is generally available, any installs using app setup policy will be in read only mode. For more information about availability of app centric management, see Microsoft 365 roadmap ID 394274, Microsoft 365 roadmap ID 500637 and for timeline, see Message Center post MC795355.
  • Existing installed apps using app setup policies will remain intact. However, no new additions are permitted, and only deletions are allowed. Instead, you can install Teams apps for selected users, groups, or all users directly from the respective app. Other settings in app setup policies, including Pinned apps, will remain unchanged.

If you aren't using app centric management, then you preinstall apps using app setup policy. To know more, see overview of app setup policy. Ensure that the following prerequisites are met.

To install apps using the policy, follow these steps:

  1. Sign in to Teams admin center, access Teams apps > Setup policies.

  2. Edit the existing global policy if your change applies to all users. Otherwise, select Add to create a new custom policy that you can apply to some users. Provide a name and description of the policy.

  3. Under Installed apps, select Add apps.

  4. In the Add installed apps pane, search the apps that you want to add in the Teams client of the allowed users. Select Add.

    Screenshot showing how admins preinstall apps using app setup policy.

Install apps using app centric management

If your organization is using app centric management, then you preinstall apps using its UI. For more information about availability of app centric management, see Microsoft 365 roadmap ID 394274, Microsoft 365 roadmap ID 500637 and for timeline, see Message Center post MC795355. To start using app centric management, see use and migrate to app centric management.

Note

If you previously used app setup policies to install apps and now migrate to app centric management, then your policy settings will not be automatically migrated to the new experience.

Before you preinstall apps using app centric management, ensure that the following prerequisites are met.

To install apps using the app centric management UI, follow these steps:

  1. Log into Teams admin center and access Teams apps > Manage apps page. Do one of the following tasks:

    • Select an app, and click Edit installs. Select whom to install the app for and select Apply.

      Screenshot showing app installation option for admins on the Manage apps page.

    • Alternately, you can install an app from the app details page.

      1. Select Users and groups > Installs > Install app.
      2. Select whom to install the app for and select Apply. The app is made available to the selected users and groups and there's no need to separately make the app available for the same users and groups.

      Screenshot showing app installation option for admins on the app details page.

Install apps using Microsoft Graph

You can use Microsoft Graph to check whether an app is installed and install it in a user's personal scope. This approach lets you automate installation of an existing app without requiring users to install it themselves.

App requirements and permissions

Before you begin, ensure that:

  • The app is published to your organization's app store or the Teams Store. Microsoft Graph can't install an app that isn't published to either store.
  • The app supports personal scope and is allowed for the target users.
  • The Microsoft Entra application that calls Microsoft Graph has admin consent for the required permissions. These permissions authorize the calling application, not the users who receive the installed app.

For unattended installation, use app-only authentication. The requests in this section use the following application permissions:

Permission Purpose
AppCatalog.Read.All Look up an app in the Teams app catalog.
TeamsAppInstallation.ReadWriteForUser.All Check installation status and install an app for a user without a signed-in user.

Use permissions appropriate to the installation scenario. If a Teams app only needs to install itself, use TeamsAppInstallation.ReadWriteSelfForUser.All instead of permission to manage other apps. For self-installation, the app manifest must include webApplicationInfo, with an id that matches the Microsoft Entra application ID used to obtain the access token and a resource URL for the app. For other supported permissions, see Install app for user.

Get the app's catalog ID

For an app published to your organization's app store, look up its catalog ID by using the id from its app manifest as the externalId filter:

GET https://graph.microsoft.com/v1.0/appCatalogs/teamsApps?$filter=externalId eq '{IdFromManifest}'
Authorization: Bearer {token}

Use the id of the returned teamsApp object as {teamsAppId} in subsequent requests. This catalog-generated ID differs from the app manifest ID. For an app published to the Teams Store, the catalog ID is the same as the app manifest ID; don't use the externalId filter for that app.

The catalog ID identifies the Teams app, not the Microsoft Entra application used to authenticate requests. For more information, see List apps in the Teams app catalog.

Check whether the app is installed

Replace {user-id} with the target user's Microsoft Entra object ID and {teamsAppId} with the app's catalog ID:

GET https://graph.microsoft.com/v1.0/users/{user-id}/teamwork/installedApps?$expand=teamsApp&$filter=teamsApp/id eq '{teamsAppId}'
Authorization: Bearer {token}

A successful request returns 200 OK. An empty value array means the app isn't installed. If you use TeamsAppInstallation.ReadWriteSelfForUser.All, the request also returns an empty array when the webApplicationInfo id doesn't match the Microsoft Entra application ID used to obtain the access token. Make sure these IDs match before you treat an empty result as not installed.

If the array contains a teamsAppInstallation object, the app is already installed. An error response doesn't mean the app is absent. For more information, see List apps installed for a user.

Install the app for a user

If the app isn't installed, send the following request:

POST https://graph.microsoft.com/v1.0/users/{user-id}/teamwork/installedApps
Authorization: Bearer {token}
Content-Type: application/json

{
  "teamsApp@odata.bind": "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/{teamsAppId}"
}

This example installs an app without granting resource-specific consent (RSC) application permissions. If the app requires those permissions, use an appropriate permission such as TeamsAppInstallation.ReadWriteAndConsentForUser.All and include the required consentedPermissionSet in the request. For the consent requirements and request body, see Install an app and consent to its resource-specific permissions.

A successful installation returns 201 Created with no response body. Repeat the installation check to verify that the app is installed. A user might need to restart Teams to see the app.

Install apps in an existing team

Apps in teams allow better collaboration for the users. You can also install an app in a team to improve app discovery and usage. To add apps in teams that will be created in the future, add apps to a teams template. To add apps in the existing teams, follow these steps.

  1. On Manage apps page, search for an app and select it.

  2. Select Add to team.

    Screenshot showing the option for admins to add an app to specific teams.

  3. In the Add to team pane, search for the team you want to add the app to, select the team, and then select Apply.

Preinstall apps in a new team using team creation template

You can create a new team for your users using a team template. Team template lets you, as an admin, to add apps in template so that the new teams that are created, have these apps available from the beginning, for the users of the team. For more info, see add apps when creating a team template and get started with team templates.

Understand how users install apps

If the app installation prerequisites are met, users can install apps on their own. If an app is blocked, then the users can request admin approval.

From the store in their Teams client, users install apps for their personal use by selecting Add option or install apps in their teams and channels by selecting Add to team option. Option to add an app to a team is available for only those apps that can work in a team scope.