I am currently implementing a Teams bot that has to get the user name (first name and last name) and the user's email address of the person communicating with the bot via a personal chat.
I am using SDK v4 of the bot framework and tried to implement the approach mentioned here (https://github.com/OfficeDev/BotBuilder-MicrosoftTeams-dotnet). The only parameter returned when fetching the teams context is the Tenant Id. Both channel and team are null (I presume this is because I am in a private chat?).
Since I now have the tenant id from the Teams context, how do I use it to retrieve the user's info?
To retrieve the Teams context I'm calling the following:
ITeamsContext teamsContext = turnContext.TurnState.Get<ITeamsContext>();