在 Microsoft 365 中使用 Microsoft Teams 和自定义连接器Use Microsoft 365 and custom connectors in Microsoft Teams

连接器将常用内容和服务更新直接交付到频道,使团队保持最新状态。Connectors keep your team current by delivering frequently used content and service updates directly into a channel. 使用连接器,Microsoft Teams用户可以在其团队的聊天流中接收来自常用服务(如 Trello、奇妙清单、GitHub 和 Azure DevOps Services)的更新。With connectors, your Microsoft Teams users can receive updates from popular services such as Trello, Wunderlist, GitHub, and Azure DevOps Services within the chat stream in their team.

如果团队权限允许,团队的任何成员都可以使用连接器将其团队连接到热门云服务,并通知所有团队成员该服务的活动。Any member of a team can connect their team to popular cloud services with the connectors if the team permissions allow, and all team members are notified of activities from that service. 即使最初设置连接器的成员已离开,连接器仍将正常运行。Connectors will continue to function even after the member who has initially setup the connector has left. 任何有权添加\删除的团队成员都可以修改其他成员设置的连接器。Any team member with the permissions to add\remove can modify connectors setup by other members.

Microsoft 365连接器可以与 Microsoft Teams Microsoft 365 组一起使用,使所有成员可以更轻松地保持同步并快速接收相关信息。Microsoft 365 connectors can be used with both Microsoft Teams and Microsoft 365 groups, making it easier for all members to stay in sync and receive relevant information quickly. Microsoft Teams 和 Exchange 使用相同的连接器模型,这样,你可以在两个平台中使用相同的连接器。Both Microsoft Teams and Exchange use the same connector model, which allows you to use the same connectors within both platforms. 但值得注意的是,禁用团队所依赖的 Microsoft 365 组的连接器也会禁用为该团队创建连接器的能力。It is worth noting, however, that disabling connectors for the Microsoft 365 group that a team is dependent upon will disable the ability to create connectors for that team as well.

备注

默认情况下,连接器在 GCC禁用。Connectors are disabled by default in GCC environments. 如果需要启用它们,请设置 ConnectorsEnabled 或 ConnectorsEnabledForTeams 参数$true Set-OrganizationConfig cmdlet。If you need to enable them, set the ConnectorsEnabled or ConnectorsEnabledForTeams parameters to $true with the Set-OrganizationConfig cmdlet. 以前需要连接到PowerShell Exchange Online。You previously need to connect to Exchange Online PowerShell.

备注

在政府云环境环境中,连接器Community (GCC) 禁用。Connectors are disabled by default in the Government Cloud Community (GCC) environments. 如果需要启用它们,请设置 ConnectorsEnabled 或 ConnectorsEnabledForTeams 参数$true SetOrganizationConfig cmdlet。If you need to enable them, set the ConnectorsEnabled or ConnectorsEnabledForTeams parameters to $true with the SetOrganizationConfig cmdlet. 以前需要连接到PowerShell Exchange Online。You previously needed to connect to the Exchange Online PowerShell.

将连接器添加到通道Add a connector to a channel

目前,可以使用桌面和 Web 客户端Microsoft Teams连接器。Currently, you can add connectors by using Microsoft Teams desktop and web clients. 但是,可以在所有客户端(包括移动客户端)中查看这些连接器 发布 的信息。However, information posted by these connectors can be viewed in all clients including mobile.

  1. 若要将连接器添加到通道,请单击 (...) 的省略号,在通道名称的右侧,然后单击"连接器"。To add a connector to a channel, click the ellipses (…), on the right of a channel name, then click Connectors.

    "连接Teams"选项的"连接线"界面的屏幕截图。Screenshot of the Teams interface with the Connectors option selected.

  2. 可以从各种可用的连接器中选择,然后单击"添加 "。You can select from a variety of available connectors, and then click Add.

    显示可用连接器的"连接器"对话框的屏幕截图。Screenshot of the Connectors dialog showing available the connectors.

  3. 填充选定连接器的所需信息,然后单击 “保存”Fill in the required information of the selected connector and click Save. 每个连接器都需要一组不同的信息才能正常运行,有些连接器可能会要求你使用连接器配置页面上提供的链接登录服务。Each connector requires a diverse set of information to function properly, and some may require you to sign in to the service using the links provided on the connector configuration page.

    RSS 连接器的配置页面屏幕截图。Screenshot of the configuration page for the RSS connector.

  4. 连接器提供的数据会自动发布到频道。Data provided by the connector is automatically posted to the channel.

    Teams 界面屏幕截图,显示一个频道中的一个对话。Screenshot of the Teams interface showing a conversation in a channel.

重要

连接器 URL 更新通知Connector URL update notification

连接器Teams转换到新的 URL 以增强安全性。The Teams connectors are transitioning to a new URL to enhance security. 在此转换过程中,将收到某些通知,将配置的连接器更新为使用新 URL。During the course of this transition, you will receive certain notifications to update your configured connector to use the new URL. 强烈建议立即更新连接器,以防止连接器服务发生任何中断。It is strongly recommended that you update your connector immediately to prevent any disruption to connector services. 需要执行以下步骤来更新 URL:The following steps need to be followed to update the URL:

  1. 在连接器配置页中,需要更新的连接的"管理"按钮下会显示"需要注意"消息。In the connectors configuration page, an "Attention Required" message will be displayed under the "Manage" button for the connections that need to be updated. "需要注意"消息的屏幕截图。Screenshot of the "Attention Required" message.
  2. 对于传入的 Webhook 连接器,用户只需选择"更新 URL", 然后使用新生成的 Webhook URL 即可重新创建连接。For incoming webhook connectors, users can recreate the connection by simply selecting Update URL and using the newly generated webhook URL. "更新 URL"按钮的屏幕截图。Screenshot of the "Update URL" button.
  3. 对于其他连接器类型,用户需要删除连接器并重新创建连接器配置。For other connector types, the user would need to remove the connector and recreate the connector configuration.
  4. 成功更新 URL 后,会看到一条消息"URL 是最新的"。You will see a message "URL is up-to-date" after the URL has been successfully updated. "URL 是最新的"消息的屏幕截图。Screenshot of the "URL is up-to-date" message.

开发自定义连接器Develop custom connectors

还可以生成自定义连接器,以及传入和传出 Webhook。You can also build custom connectors, as well as incoming and outgoing webhooks. 有关详细信息,请参阅“开发人员文档”。See our developer documentation for more information.