51CTO 博客地址:https://blog.51cto.com/13969817
博客园博客地址:https://www.cnblogs.com/bxapollo
Microsoft Teams 的企业信息归档一直以来都是客户的重要场景,因为它允许客户解决“保留、索引、分列、监管”等需求,而Teams Export API 一直迟迟未发布,很多客户的合规部门因此事件导致团队无法使用Teams或者无法切换订阅等等场景,现在9月23日Microsoft Ignite 大会上,已正式发布Teams Export API 将允许导出Teams 消息,包括但不限于:
- 每个Tenant 最多支持200个RPS,每个应用程序最多支持600个RPS的批量导出作业,不限于1:1的聊天还是群聊。
- 混合环境(On Premise Exchanges 和Teams)中配置的用户发送的任何消息都可以使用Export API进行访问。
- 用户如果从Teams 客户端删除的消息,可以在删除后30天内使用Export API获取到。
- Export API 还支持导出聊天相关的附件(文件链接和贴纸)、表情符号,Gif和用户@提及到等等。
- 支持聊天信息相关的属性导出,关于属性的详细支持情况,请查看聊天信息资源类型
说明:目前可以在Public Preview中使用了,这将给很多客户带来了福音。
使用Export Chat API的先决条件:
- 它只对拥有API所需许可证的用户和租户可用,详情请查看聊天信息许可证。
* Office 365 E5
* Office 365 A5
* Microsoft 365 E5
* Microsoft 365 A5
* Microsoft 365 Information Protection and Governance
* Office 365 Advanced Compliance
- Microsoft 在Microsoft Graph中将访问敏感数据的API视为受保护的API,在使用Export API之前,需要进行额外的验证,需要完成请求表单
- 应用程序权限:
* Chat.Read.All,启用允许访问所有1:1和群聊天消息
* User.Read.All,支持对租户的用户列表的访问
JSON示例代码:
{
"id": "string (identifier)",
"replyToId": "string (identifier)",
"from": {"@odata.type": "microsoft.graph.identitySet"},
"etag": "string",
"messageType": "string",
"createdDateTime": "string (timestamp)",
"lastModifiedDateTime": "string (timestamp)",
"deletedDateTime": "string (timestamp)",
"subject": "string",
"body": {"@odata.type": "microsoft.graph.itemBody"},
"summary": "string",
"attachments": [{"@odata.type": "microsoft.graph.chatMessageAttachment"}],
"mentions": [{"@odata.type": "microsoft.graph.chatMessageMention"}],
"importance": "string",
"locale": "string",
}
相关资料: