Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - Bot Administration
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*

 

  • durak86lol Profile Picture
    18 on at
    Re: Having issues with Azure AD v2 login in teams deployment

    Thanks, that worked!

  • HenryJammes Profile Picture
    on at
    Re: Having issues with Azure AD v2 login in teams deployment

    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
    Re: Having issues with Azure AD v2 login in teams deployment

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

  • Thess0104 Profile Picture
    7 on at
    Re: Having issues with Azure AD v2 login in teams deployment

    I am experiencing this exact same issue.

    No concrete resolution has helped

  • Redbird Profile Picture
    57 on at
    Re: Having issues with Azure AD v2 login in teams deployment

    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.

  • Talsmonkey Profile Picture
    8 on at
    Re: Having issues with Azure AD v2 login in teams deployment

    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

  • ikhan_24 Profile Picture
    31 on at
    Re: Having issues with Azure AD v2 login in teams deployment

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

  • smodderman Profile Picture
    8 on at
    Re: Having issues with Azure AD v2 login in teams deployment

    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.

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at
    Re: Having issues with Azure AD v2 login in teams deployment

    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

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 - Bot Administration

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 2 Super User 2025 Season 1

Overall leaderboard

Featured topics