如何获取/读取正在编辑Word文档的Windows用户的名称? [英] How to get/read the name of the windows user who is editing the word document?
本文介绍了如何获取/读取正在编辑Word文档的Windows用户的名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我最近开始研究Microsoft word加载项,我想知道是否有任何方法可以获取/读取Windows用户的名称. 使用Office.JS API编辑word文档.
I have recently started working on Microsoft word add ins , I would like to know if there is any way to get/read the name of the windows user who is editing the word document using Office.JS API.
希望我的问题有道理.
推荐答案
Not directly at the moment. There is a new set of SSO functionality that just went into Preview however which would allow you to fetch the current user's profile from Microsoft Graph.
请参见为启用单点登录Office加载项(预览),详细了解其工作方式.
See Enable single sign-on for Office Add-ins (preview) for details on how this works.
这篇关于如何获取/读取正在编辑Word文档的Windows用户的名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文