title: Get data for Azure Active Directory user in MS Bot Framework bot
body: <p>I deployed a Cortana bot written in Node.js on my Azure account. The bot uses the Cortana channel with "Connected Services" turned on (so I can login in the bot using an account from my Azure Active Directory). The login works fine.</p>
  
  <p>My problem is that now I don't know how to get info about the logged-in user (e.g. email address) in my bot.</p>
  
  <p>I'm guessing I would need to get some token from the session data and then send an API request asking Azure for the user's data?</p>
  
  <p>There is this <a href="https://github.com/MicrosoftDX/botauth/tree/master/examples/aadv2" rel="nofollow noreferrer">botauth</a> example for Node.js but the instructions for running it are outdated.</p>