Forum Discussion

vovanb's avatar
vovanb
Tin Contributor
Jul 03, 2023

Re: in Microsoft Teams JavaScript library user.displayname is always empty

So how I can obtain user display name from Teams Tab application?

5 Replies

    • vovanb's avatar
      vovanb
      Tin Contributor
      To be honest I am not happy with your answer - the documentation https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/access-teams-context?tabs=Json-v2%2Cteamsjs-v2
      show that "user": has "displayName" but it does not says that it will be always empty.
      Why if it is not available you return it?
      • Sayali-MSFT's avatar
        Sayali-MSFT
        Icon for Microsoft rankMicrosoft
        vovanb -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.