如何get/read编辑word文档的windows用户名?

How to get/read the name of the windows user who is editing the word document?

我最近开始研究 Microsoft word 加载项,我想知道是否有任何方法可以 get/read windows 用户的名称 使用 Office.JS API.

编辑 word 文档

希望我的问题有道理。

目前不直接。有一组新的 SSO 功能刚刚进入预览版,但它允许您从 Microsoft Graph 获取当前用户的配置文件。

有关其工作原理的详细信息,请参阅 Enable single sign-on for Office Add-ins (preview)