Uploading Custom Apps to Teams

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② When every section has a ✓, tap Complete lesson.

0 of 11 read · keep scrolling

✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro

Module: Manage Teams Channels Chats and Apps

Lesson: Uploading Custom Apps to Teams

Introduction: Why Custom Apps Matter in Microsoft Teams

In the modern digital workplace, the standard suite of applications provided by Microsoft 365 often serves as the foundation for daily productivity. However, every organization has unique workflows, proprietary databases, and internal tools that do not have a pre-built connector in the Teams App Store. This is where custom apps come into play. A custom app in Microsoft Teams is a tailored software solution—developed either in-house or by a third-party vendor—designed to integrate specific business logic, data visualization, or automation directly into the Teams interface.

Learning how to upload and manage these custom apps is a critical skill for IT administrators and developers. By bringing custom tools into Teams, you reduce "context switching," which is the productivity-draining habit of jumping between a web browser, a desktop database, and your communication hub. When your internal ticketing system, your project management dashboard, or your custom HR portal lives inside a Teams tab, you create a focused, high-velocity environment for your employees. This lesson will guide you through the technical requirements, the upload process, the governance policies, and the best practices for maintaining these custom applications.


Not read yet

The Anatomy of a Teams App Package

Before we dive into the uploading process, we must understand what we are actually uploading. A Teams app is not a simple executable file; it is a compressed package—specifically a .zip file—that contains the necessary metadata to tell Microsoft Teams how to render and behave.

The core of every custom app is the App Manifest. This is a JSON file, typically named manifest.json, which acts as the blueprint for your application. It defines the app’s identity, the capabilities it supports (such as bots, tabs, or messaging extensions), and the permissions it requires to access data.

Key Components of the Manifest:

  • $schema: Defines the version of the manifest schema being used.
  • manifestVersion: The version of the manifest format.
  • version: The version number of your specific app package.
  • id: A unique GUID that identifies your app globally.
  • developer: Information about who created the app.
  • icons: References to the color and outline icons used in the Teams client.
  • configurableTabs: Defines the UI components that users interact with inside a channel or chat.
  • bots: Configures the endpoint for a conversational bot.

When you package your app, you must include the manifest.json file along with two PNG icon files (one color, one outline) in a single zip archive. If any of these elements are missing or improperly formatted, the Teams upload process will reject the package, often with an unhelpful error message.


Not read yet

Understanding the Deployment Lifecycle

Custom apps do not just appear in the Teams store; they must follow a specific lifecycle. This lifecycle consists of three distinct stages: development, testing, and distribution.

  1. Development: During this phase, you build the app using tools like the Teams Toolkit for Visual Studio Code or the Microsoft Teams SDK. You are likely testing against a local host or a development server.
  2. Sideloading (Testing): This is the process of uploading the app directly to a specific team or user context for validation. This does not make the app available to the whole organization; it is restricted to your immediate testing environment.
  3. Organization-Wide Distribution: Once the app is vetted, an administrator uploads it to the "Manage Apps" section in the Microsoft Teams admin center, making it available for users to install from the internal app catalog.

Callout: Sideloading vs. Publishing Sideloading is the practice of uploading a custom app package directly into a specific team or chat. It is intended for testing and development purposes. Publishing, on the other hand, involves uploading the app to the organization's private app catalog, which makes it discoverable for all users. You should never sideload an app into a production environment for widespread use, as it lacks the centralized management and update capabilities of a published app.


Not read yet

Step-by-Step: Sideloading an App for Testing

Sideloading is the most common way to get a custom app running during the development cycle. It allows you to see exactly how your app will appear to end-users without requiring global administrative approval for every iteration.

Prerequisites:

  • An active Microsoft 365 tenant.
  • Permissions to upload custom apps (this is controlled by Teams App Setup Policies).
  • A valid .zip package containing your manifest and icons.

The Process:

  1. Open Microsoft Teams: Navigate to the specific Team or Chat where you want to test the app.
  2. Access the App Menu: Click on the "Apps" icon in the left-hand navigation bar (or the bottom of the sidebar depending on your version).
  3. Upload the Package: Look for the link at the bottom of the sidebar that says "Upload a custom app" or "Upload an app to your org." If you do not see this, it means your administrator has disabled sideloading for your account.
  4. Select the File: Navigate to the folder on your computer where your .zip package is stored and select it.
  5. Verify: Once uploaded, the app will appear in the "Built for your organization" section. You can now add it to a channel or chat to verify functionality.

Note: If you are using the Teams Toolkit for Visual Studio Code, you can automate this process. The toolkit provides a "Preview" button that handles the packaging and sideloading steps automatically, significantly speeding up the development feedback loop.


Not read yet

Managing App Permissions and Governance

Uploading an app is not just a technical task; it is a security responsibility. Every custom app can potentially access sensitive data within your Microsoft 365 tenant. Therefore, you must manage these apps with a "least privilege" mindset.

Controlling Who Can Upload Apps

By default, Microsoft Teams may allow all users to upload custom apps, which can lead to "shadow IT" where users install unvetted or potentially malicious tools. You should strictly control this via Teams App Setup Policies in the Teams Admin Center.

  • Global Policy: This applies to everyone in your organization. You should set the "Upload custom apps" toggle to "Off" for the vast majority of users.
  • Custom Policies: Create a specific policy for your development team or IT staff that allows them to "Upload custom apps." Assign this policy only to those specific users.

Reviewing App Permissions

When you upload an app to the tenant catalog, Teams will display the permissions the app requires (e.g., "Read user profiles," "Access channel messages"). As an administrator, you must review these carefully. If an app requests "Read and write all channel messages" but only provides a simple weather forecast, that is a red flag. Always consult with your security team before approving an app for general use.

Feature Sideloading Tenant App Catalog
Audience Limited to specific user/team Entire organization
Visibility Only to the person who installed it Searchable in "Built for your org"
Approval None (if policy permits) Requires Admin approval
Updates Manual (re-upload) Managed via Admin Center
Primary Use Development and Debugging Production distribution

Not read yet

Best Practices for App Maintenance

Once your app is live, your work is not finished. Applications require maintenance, updates, and occasional removal. Following these best practices will keep your environment clean and secure.

  1. Versioning: Always update the version number in your manifest.json before uploading a new version. If you upload a package with the same version number as an existing app, Teams may not recognize the update, leading to confusion.
  2. Naming Conventions: Give your app a clear and descriptive name. Users should know exactly what the app does just by looking at the icon and the name. Avoid generic names like "Internal Tool 1."
  3. Monitoring Usage: Use the "Manage Apps" page in the Teams Admin Center to see how many users are actually interacting with your custom apps. If an app has zero active users after a few months, consider decommissioning it to reduce the attack surface of your tenant.
  4. Documentation: Maintain a simple internal document that describes the purpose of the app, the contact person for issues, and the data it accesses. This is invaluable when the original developer leaves the organization or moves to a different project.
  5. Regular Audits: Perform a quarterly review of all apps in your organization's app catalog. Remove any that are no longer supported or that have been replaced by newer versions.

Not read yet

Common Pitfalls and How to Avoid Them

Even experienced administrators run into issues when managing custom apps. Being aware of these pitfalls can save you hours of troubleshooting.

1. The Missing "Upload" Button

Problem: You are trying to upload an app, but the "Upload a custom app" option is missing entirely. Solution: This is almost always a policy issue. Check the Teams Admin Center under "Teams Apps" > "Setup policies." Ensure that the "Upload custom apps" toggle is enabled for your account. Remember that policy changes can take up to 24 hours to propagate across the Microsoft 365 environment.

2. Manifest Validation Errors

Problem: You attempt to upload a zip file, but Teams returns a generic "Manifest validation failed" error. Solution: The Teams manifest is extremely sensitive to formatting. Use a JSON validator to ensure your manifest.json is syntactically correct. Additionally, ensure that your icons are exactly 192x192 (color) and 32x32 (outline) pixels, and that the file names match exactly what is defined in the manifest.

3. Scope Mismatch

Problem: You upload an app, but it doesn't appear in the channel tab menu. Solution: Check the scopes section of your manifest.json. If you have only defined personal scope, the app will not be available in channels or groups. You must define team or groupchat scopes if you want the app to appear in those contexts.

4. The "Ghost" App

Problem: You updated the app, but users are still seeing the old version. Solution: Teams often caches app information. Sometimes, uninstalling the app from the team and reinstalling it is necessary to force the client to pull the latest manifest and web content.


Not read yet

Deep Dive: Automating the Upload Process with PowerShell

While the Teams Admin Center is great for occasional tasks, professional administrators often prefer the repeatability and speed of PowerShell. The Microsoft Teams PowerShell module allows you to manage custom apps programmatically.

To upload an app to the organizational app catalog, you can use the New-TeamsApp cmdlet.

# First, connect to your Teams environment
Connect-MicrosoftTeams

# Define the path to your zip package
$appPackagePath = "C:\Apps\CustomProjectManager.zip"

# Upload the app to the tenant catalog
$app = New-TeamsApp -Path $appPackagePath

# Verify the app upload
Get-TeamsApp -Id $app.Id

This approach is particularly useful in CI/CD (Continuous Integration/Continuous Deployment) pipelines. For example, if you are using Azure DevOps or GitHub Actions, you can configure your pipeline to automatically build your app, package it, and push it to your Teams tenant whenever you merge code into your main branch. This ensures your production environment is always running the latest tested version of your internal tools.

Warning: Be very careful when running scripts that manage apps. A typo in a script could accidentally remove all custom apps from your organization. Always test your scripts in a developer tenant before executing them in your production environment.


Not read yet

Security Considerations for Custom App Development

When you allow custom apps, you are essentially allowing code to run inside your organization's environment. While Teams apps are sandboxed to some degree, they still interact with the Microsoft Graph API.

  • Graph API Permissions: If your app uses the Microsoft Graph, it will need permissions (scopes) defined in the Azure Active Directory (now Microsoft Entra ID) app registration. Only grant the minimum permissions necessary. If an app only needs to read a user's name, do not grant it permission to read their emails or calendar.
  • App Registration: Every Teams app needs a corresponding App Registration in Entra ID. This is where the authentication happens. Ensure that you have a secure process for managing the client secrets associated with these registrations. Rotating secrets periodically is a standard security practice that prevents long-term credential leakage.
  • Data Residency: If your custom app sends data to an external server (e.g., a custom web service hosted on AWS or Azure), ensure that you have clear visibility into where that data is stored and how it is encrypted. You should treat the data handled by custom apps with the same rigor as any other enterprise data.

Not read yet

Example: A Practical Scenario

Imagine your company uses an internal "Office Desk Booking" system. Currently, employees have to log into a separate website to book their desks. You want to make this easier by putting the booking system directly into a Teams tab.

  1. Development: Your developer builds a web application that displays the desk map and booking form. This web app is hosted on an internal server.
  2. Manifest Creation: The developer creates a manifest.json that points the contentUrl and websiteUrl to the URL of the desk booking system.
  3. Packaging: They bundle the manifest and the icons into desk-booking.zip.
  4. Testing: The developer sideloads the zip file into their own personal Teams client to ensure the authentication flow (Single Sign-On) works correctly.
  5. Deployment: Once satisfied, they send the zip file to the IT admin.
  6. Admin Upload: The IT admin logs into the Teams Admin Center, goes to "Manage Apps," and clicks "Upload new app." They select the desk-booking.zip file.
  7. Policy Assignment: The admin adds this new app to the "Global (Org-wide default)" app setup policy.
  8. Result: Every employee in the company now sees "Desk Booking" in their app sidebar and can pin it to their Teams experience.

This transition from a standalone website to an integrated Teams app significantly improves the user experience and ensures that employees are more likely to use the tool, as it is always just one click away.


Not read yet

Summary Checklist for Deployment

To ensure your custom app deployment is successful and secure, follow this checklist every time you introduce a new tool:

  • Manifest Validation: Is the JSON structure correct? Is the version number incremented?
  • Icon Verification: Are the PNG files the correct dimensions and file sizes?
  • Permissions Audit: Are the requested permissions the absolute minimum required for functionality?
  • Security Review: Has the app been vetted for potential vulnerabilities?
  • Policy Configuration: Have you verified which users have access to this app?
  • Testing: Has the app been tested in a real-world scenario by a small pilot group?
  • Documentation: Does the end-user have instructions on how to use the app?

Key Takeaways

  1. Apps are Packages: A Teams custom app is fundamentally a .zip file containing a manifest.json and two icon files. Success starts with a perfectly formatted manifest.
  2. Sideloading is for Devs: Use sideloading strictly for testing and development. It is an efficient way to iterate, but it is not a substitute for proper organizational deployment.
  3. Governance is Mandatory: Never leave the "Upload custom apps" permission open to everyone in your organization. Use Teams App Setup Policies to restrict this to authorized personnel.
  4. Security First: Every custom app is a potential security vector. Review the permissions requested by the app carefully and ensure they align with the app's stated purpose.
  5. Lifecycle Management: Treat your custom apps like software products. Use versioning, conduct regular usage audits, and remove outdated apps to keep your Teams environment clean and performant.
  6. Automation: For larger organizations, move away from the manual UI upload process and adopt PowerShell scripts or CI/CD pipelines to manage your app catalog.
  7. User Experience: The primary goal of a custom app is to reduce friction. If an app adds more complexity than it solves, re-evaluate its design rather than forcing it on your users.

By following these guidelines, you transform Microsoft Teams from a simple communication platform into a powerful, customized digital workspace that reflects the specific needs and workflows of your organization. Whether you are a developer looking to deploy your latest build or an administrator tasked with governing internal tools, these foundational skills ensure that your custom app integration is smooth, secure, and highly effective.

Not read yet

Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.