简体   繁体   English

如何获取 MS Teams 私人频道的 SharePoint 站点

[英]How to get MS Teams private channel's SharePoint site

I am following this article Manage lifecycle of private channels to get private channel's site url using App-Only authentication.我正在关注这篇文章管理私人频道的生命周期以使用仅应用程序身份验证获取私人频道的站点 url。 Its giving the desired result in one tenant for both the requests GET https://graph.microsoft.com/beta/teams/<group_id>/channels?$filter=membershipType eq 'private' GET https://graph.microsoft.com/beta/teams/<group_id>/channels?$filter=membershipType eq 'private' mentioned in the article but in other tenant its throwing error "502 Bad Gateway" for second request GET https://graph.microsoft.com/beta/teams/<group_id>/channels/<channel_id>/filesFolder but first one succeeds.它在一个租户中为两个请求GET https://graph.microsoft.com/beta/teams/<group_id>/channels?$filter=membershipType eq 'private' GET https://graph.microsoft.com/beta/teams/<group_id>/channels?$filter=membershipType eq 'private'提供了所需的结果GET https://graph.microsoft.com/beta/teams/<group_id>/channels?$filter=membershipType eq 'private' GET https://graph.microsoft.com/beta/teams/<group_id>/channels?$filter=membershipType eq 'private'在文章中提到,但在其他租户中,它的第二个请求抛出错误“502 Bad Gateway” GET https://graph.microsoft.com/beta/teams/<group_id>/channels/<channel_id>/filesFolder但第一个成功。 Can anyone suggest what could be the issue?任何人都可以建议可能是什么问题? Please note, in both the tenants app has same permissions.请注意,这两个租户应用程序具有相同的权限。

Error: { "error": { "code": "BadGateway", "message": "Failed to execute backend request.", "innerError": { "request-id": "6ab8032b-8d33-4543-b2f1-0e13978e9699", "date": "2020-02-05T07:00:11" } } }错误: { "error": { "code": "BadGateway", "message": "Failed to execute backend request.", "innerError": { "request-id": "6ab8032b-8d33-4543-b2f1-0e13978e9699", "date": "2020-02-05T07:00:11" } } }

How are you creating the private channel?你是如何创建私人频道的? If you are creating the private channel using Graph it will fail until you actually open the channel i Teams.如果您使用 Graph 创建私人频道,它将失败,直到您真正打开频道 i Teams。

I found that when you create a team and a private channel in Graph then the private channels drive and SharePoint site is never generated until you actually manually visit the private channel.我发现当您在 Graph 中创建团队和私人频道时,私人频道驱动器和 SharePoint 网站永远不会生成,直到您实际手动访问私人频道。 Once you open the channel in the Teams app this triggers the drive and sharepoint site creation for that private channel.在 Teams 应用程序中打开频道后,这将触发该专用频道的驱动器和共享点站点创建。 After this is done you can run the line again and it will work.完成此操作后,您可以再次运行该行,它将起作用。 https://graph.microsoft.com/beta/teams/ /channels//filesFolder https://graph.microsoft.com/beta/teams/ /channels//filesFolder

I found no way around this, tried everything from creating channel using PowerShell and so on.我发现没有办法解决这个问题,尝试了从使用 PowerShell 创建通道等等的所有方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将私人 Teams 频道与其 SharePoint Online 站点相匹配? - How do I match a private Teams channel to its SharePoint Online site? 有没有办法创建私人频道的 SharePoint 网站? - Is there a way to create a private channel's SharePoint site? MS Graph 团队 api 无法将消息发布到频道并获取频道的消息 - MS Graph teams api cann't post message to channel and get channel's messages 团队频道的获取文件夹的 MS Graph 问题 - MS Graph Issue with a get filesfolder for a teams channel 尝试使用 Graph API 从 Web App 获取用户频道并将消息发布到 MS Teams 频道 - Trying to use Graph API to get user's channels and post messages to MS Teams Channel from Web App 如何获取有关 MS Teams 用户当前通话的通知? - How to get notification about an MS Teams user's current call? Microsoft 流程:ForbiddenError-403,尝试在 MS 团队中创建私人频道时 - Microsoft flow:ForbiddenError-403, when trying to create private channel in MS teams Microsoft Teams - 如何使用 MS Graph 在 Teams 频道中检索有关未读消息的信息 - Microsoft Teams - How to retrieve information about unread messages in a Teams Channel with MS Graph 使用 MS Graph 添加团队频道 - Adding a Teams Channel Using MS Graph 如何获取 SharePoint 网站的所有者? - How to get the owner of a SharePoint site?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM