0

I'm trying to integrate my chat Bot in the sharepoint website. What i want in that i can recognize the current user that is using my bot (for example if the user X is connected to sharepoint and says hello, the bot replies "Hi X") because i want to manage the lists in sharepoint relative to each user.

I've searched and i found a framework called SPFx for sharepoint.

Is this framework the solution ? If so how can i enable my Bot within SPFx ? If not how can i determine the current user ? is it by authentificating before chatting ?

Soufien Hajji
  • 477
  • 1
  • 8
  • 24
  • 1
    Possible duplicate of [Bot Builder : How to create a bot using OAuth 2 implicit grant flow method in sharepoint](https://stackoverflow.com/questions/50293550/bot-builder-how-to-create-a-bot-using-oauth-2-implicit-grant-flow-method-in-sh) – Eric Dahlvang May 11 '18 at 22:57

1 Answers1

0

SPfx is the solution. This is link how to start:

public render(): void { // <----------<<< under your render mothod you write following line:
    let currentUser=this.context.pageContext.user.displayName;