团队:应用策略向每个团队添加应用
Teams: App policy adding app to every team
是否可以选择制定策略或运行 powershell 命令以将特定应用程序添加到曾经的团队。
我的问题:
我学校有很多团队(100 个左右)。现在我们要添加一个应用程序(Sharepoint Document Libary)
到团队中的每个特定频道,以便学生可以使用它。有简单的方法还是我必须手动将其添加到每个团队?
您可以使用图形 API 来自动执行此操作。使用 Add a tab Graph APIs to configure new tab to your channel. Please take a look at example on how to Configure Document library 选项卡。
POST https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/tabs
{
"displayName": "Document%20Library1",
"teamsApp@odata.bind": "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/com.microsoft.teamspace.tab.files.sharepoint",
"configuration": {
"entityId": "",
"contentUrl": "https://microsoft.sharepoint.com/teams/WWWtest/Shared%20Documents",
"removeUrl": null,
"websiteUrl": null
}
}
是否可以选择制定策略或运行 powershell 命令以将特定应用程序添加到曾经的团队。
我的问题:
我学校有很多团队(100 个左右)。现在我们要添加一个应用程序(Sharepoint Document Libary) 到团队中的每个特定频道,以便学生可以使用它。有简单的方法还是我必须手动将其添加到每个团队?
您可以使用图形 API 来自动执行此操作。使用 Add a tab Graph APIs to configure new tab to your channel. Please take a look at example on how to Configure Document library 选项卡。
POST https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/tabs
{
"displayName": "Document%20Library1",
"teamsApp@odata.bind": "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/com.microsoft.teamspace.tab.files.sharepoint",
"configuration": {
"entityId": "",
"contentUrl": "https://microsoft.sharepoint.com/teams/WWWtest/Shared%20Documents",
"removeUrl": null,
"websiteUrl": null
}
}