在 Slack 中管理应用所有权的最佳实践

Best practice to manage app ownership in Slack

在 Slack 中管理应用所有权的最佳方法是什么?

目前我们团队中的所有开发人员都在他们自己的 Slack 帐户下创建他们的应用程序。这样做的风险是,如果他们离开公司并且他们的帐户被关闭,那么他们创建的应用程序将停止工作。

这一定是一个通用的解决方案,但我找不到包含好的解决方案的权威文档。

你会推荐什么?

以下是我对管理应用开发所有权的建议。

对于这个讨论,我们需要区分

  • 创建 Slack 应用程序
  • 正在安装 Slack 应用程序。

这些是不同的概念,需要以不同的方式处理。

创建 Slack 应用程序

新的 Slack 应用程序始终在工作区中创建,并且属于创建它的用户。如果该用户离开工作区(或休长假),则无法再管理 Slack 应用程序。

每个 Slack 应用程序 adding collaborators 都可以减轻这种风险。协作者拥有相同的权利(例如删除应用程序),并且在初始创建者被停用后将保留他们的访问权限。

如文档所述:

  • Slack apps are owned and contained by the team they are created on.
  • Slack apps may have multiple App Collaborators associated with it, and they can review & manage the application record. They can also add or remove other collaborators.

为了进一步降低失去对 Slack 应用程序的访问权限的风险,明智的做法是创建一个虚拟管理员用户,该用户必须作为协作者添加到每个 Slack 应用程序中。这样,即使多个用户离开工作区,您也不会失去对 Slack 应用程序的访问权限。

正在安装 Slack 应用程序

当 Slack 应用程序的创建者或协作者被停用时,如果他也是安装者,他的应用程序将自动卸载。正如 documentation 中所说:

One caveat: this exception doesn't apply to the folks who created an app or were added as an App Collaborator. When they leave, the app is still uninstalled. Same goes for when an app uses additional scopes beyond the ones listed above, taking on the behavior of a user.

避免这种情况的一种方法是使用虚拟管理员帐户而不是实际用户来安装应用程序。