Jul 03 2023 08:05 AM
Hello,
Using TeamsJS library v2 :
microsoftTeams.initialize(); microsoftTeams.getContext((context) => { console.log("microsoftTeams context", context); });
But context.user.displayName is always empty. What is wrong?
Jul 03 2023 11:14 PM
@vovanb -This is by design behavior. Teams has never returned the displayName in the app context.
Jul 03 2023 11:16 PM
Jul 03 2023 11:33 PM
@vovanb - You can authenticate the user and get their name from the auth token:
https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/authentication/tab-sso-overvie...
Jul 04 2023 08:21 AM
Jul 04 2023 10:53 PM
Jul 04 2023 10:57 PM
Jul 04 2023 11:00 PM
Dec 11 2023 06:59 PM