none
Link from app to logged in email RRS feed

  • Question

  • Hi everyone,

    Looking for some help regarding linking to a user's email account.

    At the moment, users log into our app, click the email button which then links them to outlook.office365.com where they have to re-log in again (using the same credentials)
    We're hoping is that instead they click on the email button which then links them to the page and logs them in at the same time.

    Is that possible at all using the APIs or other methods?

    Thanks in advance! :)

    Tuesday, December 12, 2017 2:56 PM

All replies

  • There are a few details that are unclear in your post. Are you seeing something where they have to log into office365 twice? Is the "e-mail button" something you wrote in your add-in, or an e-mail button in Outlook/OWA? Are they logging into your own servers? 

    That being said the functions that you are looking for are probably solved by the following apis: 

    getUserIdentityTokenAsync

    https://dev.office.com/reference/add-ins/outlook/1.5/Office.context.mailbox?product=outlook&version=v1.5

    and the new SSO feature:

    Office.context.auth.getAccessTokenAsync 

    https://dev.office.com/reference/add-ins/shared/office.context.auth.getAccessTokenAsync

    https://github.com/OfficeDev/outlook-add-in-attachments-demo


    Alert sent from MSDN

    Tuesday, December 12, 2017 11:02 PM