web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Having issues with Azu...
Copilot Studio
Unanswered

Having issues with Azure AD v2 login in teams deployment

(2) ShareShare
ReportReport
Posted on by 8

Hey all, I have been having some issues with the Teams PVA utilizing Azure AD v2 connection. I am able to sign in fine in the test bot, but once I deploy to production the signin button doesn't show up so users can't sign in to authenticate.


Test bot
Me: Hi
Bot: Hello! To be able to help you, I’ll need you to sign in.

Bot: To continue, please login <Login Button>

 

Published bot:

Me: Hi
Bot: Hello! To be able to help you, I’ll need you to sign in.

*Crickets*

 

Categories:
I have the same question (0)
  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @smodderman ,

     

    The authentication for PVA Teams bots is different.

    Look at the documentation:

    Bots created in Microsoft Teams come with authentication pre-configured to use Teams authentication.

    You can also enable user authentication within a bot conversation so the bot can:

    • Get a user's basic properties such as username and ID in bot variables.
    • Prompt a user to sign in using an authentication node, so the bot can retrieve the user's information from a back-end system.
    • Use single sign-on (SSO) on web channels so your users don't need to sign in manually.

    Add user authentication to chatbot topics in Microsoft Teams - Power Virtual Agents | Microsoft Docs

  • smodderman Profile Picture
    8 on at

    We are trying to use single sign on, and it does work when using the test bot window. the problem comes when we publish the test bot, the authenticate card doesn't run but the topic the authenticate card is in runs.


    Screenshot 2024-02-23 131818.png
    This works once azure ad v2 auth is setup

     

    Screenshot 2024-02-23 132012.png

    Same bot, but published conversations don't show the login button / won't login.

  • ikhan_24 Profile Picture
    31 on at

    @smodderman Did you find a solution to your problem? I am having the exact same problem.

  • Talsmonkey Profile Picture
    8 on at

    I'm having the same problem. Works on the web site against Azure AD, but not in teams. Just say I need to login, but doesn't give me a button or other options to do that.

     

    Kind regards,

    Charl Marais

  • Redbird Profile Picture
    59 on at

    Aren't you already logged in automatically in Teams?

    I may be off-base but I implemented the Teams channel for a PVA and enabled Security via Settings-Security-Authentication-Only for Teams.

    Of course, this disables all other channels, I guess.

  • Thess0104 Profile Picture
    7 on at

    I am experiencing this exact same issue.

    No concrete resolution has helped

  • durak86lol Profile Picture
    18 on at

    I have exactly same problem, can someone from @microsoft look into it?

  • HenryJammes Profile Picture
    on at

    Hi all,

     

    SSO of a PVA bot deployed to Teams works with manual auth (AAD v2), but the catch I believe is to deploy it manually though the Teams zip file that contains the app manifest, not the one-click deployment option.

     

    Let me know if that helps.

    Henry 

  • durak86lol Profile Picture
    18 on at

    Thanks, that worked!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 251 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 201 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard