編輯

共用方式為


Collaborate on Microsoft Teams project using Microsoft 365 Agents Toolkit

Multiple developers can work together to debug, provision, and deploy the same Microsoft 365 Agents Toolkit (previously known as Teams Toolkit) project. However, it requires manually setting the right permissions for Teams App and Microsoft Entra ID. The collaboration feature of Agents Toolkit simplifies this process between developers and project owners.

Collaborate with other developers

The following sections guide us to understand the collaboration process as project owner or collaborator:

As project owner

Note

Before adding collaborators for an environment, the project owner needs to provision the project first.

  1. Select Microsoft 365 Agents Toolkit in the activity bar.

    Screenshot shows the select Agents Toolkit from activity bar.

  2. In the ENVIRONMENT section, select the Manage Collaborators button as shown in the following image:

    Screenshot shows the collaborators.

  3. Select Add App Owners to add another Microsoft 365 account email address as a collaborator:

    • Select the apps you want to add app owners for. Screenshot shows the Add project owner.
    • (Optional) Select and confirm the Teams manifest.json file. Screenshot shows the Teams manifest file.
    • (Optional) Select and confirm the Microsoft Entra app aad.manifest.json file. Screenshot shows the Browse option.
    • Input the M365 account email address you want to add as an app owner. The account to be added must be on the same tenant as the project owner for remote debug as shown in the image. Screenshot shows the owner name to confirm.
  4. Select List App Owners to view collaborators in the current environment:

    • Select the apps you want to add app owners for. Screenshot shows the Add project owner.
    • (Optional) Select and confirm the Teams manifest.json file. Screenshot shows the Teams manifest file.
    • (Optional) Select and confirm the Microsoft Entra app aad.manifest.json file. Screenshot shows the Browse option.
    • Input the M365 account email address you want to add as an app owner. The account to be added must be on the same tenant as the project owner for remote debug as shown in the image. Screenshot shows the owner name to confirm.
    • Then you can see collaborators listed in the output channel as shown in the following image: Screenshot shows the collaborators list.
  5. Push the project to GitHub.

    Note

    The newly added collaborators don't receive any notification. The project owner needs to notify the collaborator.

As project collaborator

  1. Clone the project from GitHub.

  2. Log in to your Microsoft 365 account.

  3. Log in to your Azure account. It has contributor permission required by the project for all Azure resources.

  4. To preview your Teams app, deploy the project to remote.

  5. Launch remote to have a preview of the Teams app.

    Note

    Collaborators must log in using the account that the project owner adds under the same tenant with the project owner. For more information, see build and run your Teams app in a remote environment.

Remove Collaborator

To manually remove collaborators, do one of the following procedures:

  • Using Developer Portal

    • Go to Teams Developer Portal and select your Teams app by name or app ID.
    • Select Owners from the left panel.
    • Select Delete to remove other app owners.
  • Using Microsoft Entra ID

    • Go to Microsoft Entra ID, select App registrations from the left panel, and find your app.

    • Select Owners from the left panel in the Microsoft Entra app management page.

    • Select and remove the owner.

      Note

      • Collaborators added to your project don't receive any notification. The project owner needs to notify the collaborator offline.
      • Azure-related permissions must be set manually by the Azure subscription administrator on the Azure portal. To manually remove the permissions, see revoke granted consent to permissions.
      • The Azure account must have the contributor role for the subscription so that developers can work together to provision and deploy the TeamsFx project.

See also