Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Answered

Bot in teams

(0) ShareShare
ReportReport
Posted on by 27

If I publish a bot in teams would the bot know the person it is talking to? Like will it be able to get their information without making them login? How would I do that?

The team I have is made through Azure directory.

Categories:
  • Verified answer
    CU22081450-0 Profile Picture
    Most Valuable Professional on at
    Re: Bot in teams

    Exactly, @tschen01!

     

  • tschen01 Profile Picture
    27 on at
    Re: Bot in teams

    @renatoromao 

    ok, thats what i thought. I'm guessing there is no way to know who the user is talking to the bot without them first logging in?

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at
    Re: Bot in teams

    @tschen01 ,

     

    No, in this documentation explains about when you use the Authentication node, the user doesn't need to copy/paste the code generated when the user clicks on the button because inside the Teams is different the behavior.

     

    Once the user enters their username and password in the prompt (hosted by the identity provider), they might be prompted to enter a validation code, depending on the channel. Some channels, such as Microsoft Teams, do not require the user to enter a validation code.

  • tschen01 Profile Picture
    27 on at
    Re: Bot in teams

    @renatoromao 
    Thank you! So does that mean i dont need the authenticate node. I just need to check the isLoggedIn token and if teams they should be logged in?

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at
    Re: Bot in teams

    Hi @tschen01 ,

     

    You can get the user information only using the authentication feature.

    https://docs.microsoft.com/en-us/power-virtual-agents/advanced-end-user-authentication

     

    But using the Teams you have a benefit that the user does not require to enter a validation code.

    https://docs.microsoft.com/en-us/power-virtual-agents/advanced-end-user-authentication#authenticate-node

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 25

#1
Pablo Roldan Profile Picture

Pablo Roldan 25

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard