How to retrieve user's details from MS Teams?

Hello guys,

I have integrated Rasa with MS Teams. In order to do this I’ve used Azure Bot Service. The problem is that I need to retrieve a user’s details from MS Teams, namely an email address of the logged user. The only thing about the user that I have so far is sender_id but I don’t know how could I use it. Also I’m aware that there is a Microsoft Bot Framework documentation (mentioned in the post here) which should explain how to perfom this action but I can’t figure out how to execute it in a custom action. I know that it’s possible according to the mentioned post - could you describe the steps needed to receive user’s details from MS Teams?

i resolved this problem by creating a custom channel. I create a new channel that extends MS Botframework. after that I added the function to request the user information from MS Graph.