问题
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.
Hope my question makes sense.
回答1:
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.
See Enable single sign-on for Office Add-ins (preview) for details on how this works.
来源:https://stackoverflow.com/questions/44024992/how-to-get-read-the-name-of-the-windows-user-who-is-editing-the-word-document