Search code examples
microsoft-graph-apibotsbotframework

Get a user profile by his email address in Bot Framework Composer People Skill


I'm using Bot Framework Composer. I have connected the people skill to my AD. How can I search for a user by it's email address? I know that for a search by name bot uses a variable contactName, what variable would it use for a search by email address?


Solution

  • If you mean 'People' template in Bot Framework Composer, then just investigate 'OnIntent (GetProfile)' trigger. It can search people by e-mail.

    For example to trigger it you can just ask bot something like 'get me user@example.com' or 'please show me user@example.com'.