Forum Discussion
vovanb
Jul 03, 2023Copper Contributor
in Microsoft Teams JavaScript library user.displayname is always empty
Hello, Using TeamsJS library v2 : microsoftTeams.initialize();
microsoftTeams.getContext((context) => {
console.log("microsoftTeams context", context);
}); But context.user.displa...
Sayali-MSFT
Microsoft
Jul 05, 2023vovanb -Engineering team considering this as feature request. It will take time to available this publicly so that for workaround they suggest that you can authenticate the user and get their name from the auth token.
We will let you know once we get any update regarding this feature.
We will let you know once we get any update regarding this feature.
vovanb
Jul 05, 2023Copper Contributor
Thanks for update, but I disagree that it is a feature, it is sound as bug or wrong documentation. If displayName is a part of schema - why it is empty? If it is always empty then documentation should state it
- Sayali-MSFTJul 05, 2023
Microsoft
Thanks for your valuable feedback.
We will check this with engineering team and update the document accordingly.