Share via

Office.context.mailbox.getCallbackTokenAsync not returning UPN property

Nicolas Vandenberghe 0 Reputation points
2024-02-05T22:16:22.1966667+00:00

We have an outlook add-in that makes a call to

Office.context.mailbox.getCallbackTokenAsync

and opens a popup with our service. We use the returned jwt token to know which user to authenticated in our app. Recently we received a lot of reports of users not being able to login, and we found that the property UPN is not being returned anymore in the returned JWT token. We did not change anything in the add-in before the issue started happening. Did microsoft introduce some change that would make that property not be returned anymore? We still have SMTP that has the user email, but we are not sure if it is safe to use it instead of UPN.

Microsoft 365 and Office | Development | Other
Outlook | Windows | Classic Outlook for Windows | For business
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.