How to get username, email address, file name from taskbar application

I am trying to get the following information from a taskbar application (Office add-ons):

  • User information, i.e. username email
  • Name of current open document

I am currently creating a taskbar for Word, Excel and PowerPoint, as well as an Outlook application. Please inform.

+4
source share
3 answers

Unable to get username / email address from Word / Excel / PowerPoint. You can in Outlook through Office.context.mailbox.userProfile

, Outlook, document.url document.getFilePropertiesAsync ( , , document.url - , , getFilePropertiesAsync ).

+1
+1

(SSO) . , - Office, "preferred_username". - , Office.

Office ( ).

:

Office-Add-in-ASPNET-SSO

Office-Add-in-Nodejs-SSO

, Office, Microsoft, .

I don’t know how to get user id without using SSO.

+1
source

All Articles