[英]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.