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

Community site session details

Session Id : yT6ow9j9M/pUAlKRFA86Rl
Copilot Studio - General
Unanswered

Login Button Not Showing on MS Teams

Like (2) ShareShare
ReportReport
Posted on 17 Jan 2024 09:25:57 by 29

I have a bot that can read an internal SharePoint. I chose the Manual Authentication on the bot security settings. When the bot is on the Copilot Studio test screen it asks for the user to login and shows the login button. However, if the bot is on MS Teams the bot still asks for the user to login but the button does not appear.

 

What should I do?

 

This is the same post as this one however that post is for PVA and this one is for Copilot Studio.

Categories:
I have the same question (0)
  • adilei Profile Picture
    on 17 Jan 2024 at 13:15:42
    Re: Login Button Not Showing on MS Teams

    For Generative Answers to work in Teams, you should set up SSO for Teams: Configure single sign-on for the Microsoft Copilot Studio app in Teams - Microsoft Copilot Studio | Microsoft Learn

  • jpiabrantes Profile Picture
    29 on 19 Jan 2024 at 09:01:58
    Re: Login Button Not Showing on MS Teams

    I have done that - the problem remains.

     

    In my view, independent of the solution to this, there is an additional problem: there is a silent error! Even if SSO was missing it should give an error saying the reason.

  • citron-truc Profile Picture
    394 on 19 Jan 2024 at 10:13:23
    Re: Login Button Not Showing on MS Teams

    I had something similar happen which came from the fact that I had a topic which upon receiving a message would say "Hi [Username]". Since the username was not available (the user was not logged in), the chatbot would fail and ask again for the user to authenticate in an infinite loop.

    Maybe have a look at the topics that use the user's information ?

  • jpiabrantes Profile Picture
    29 on 19 Jan 2024 at 10:17:13
    Re: Login Button Not Showing on MS Teams

    Thank you for telling your experience. The reason I want SSO is so that the bot knows about the user and can access files that the user can.

    The feature you've described is completely valid and it should work. Instead of changing the topics, I want to make the Auth work.

  • adilei Profile Picture
    on 19 Jan 2024 at 11:15:08
    Re: Login Button Not Showing on MS Teams

    @jpiabrantes what do you mean by "the problem remains"? no login button? this means something is misconfigured. You can share the configuration details here (registered app, copilot settings, etc.). Mask whatever is sensitive.

  • jpiabrantes Profile Picture
    29 on 19 Jan 2024 at 11:32:31
    Re: Login Button Not Showing on MS Teams

    Yes it still asks me to login, but does not show the login button. It would be great to receive a message saying what is misconfigured or what error is occurring (where can I see that?).

     

    I will go through the configuration details sometimes with a check list sometimes with screenshots.

    Registered app:

    API permissions:

    openid

    profile

    Files.Read.All

    Sites.Read.All

    Users.read

     

    All with Admin consent.

     

    Expose an API:

    I have used this: api://da3cbf4b-c0ae9dc4-f38c-4b47-8a59-57938637b06a

    and this is the App ID for teams (retrieved from within CoPilot Studio Channels): c0ae9dc4-f38c-4b47-8a59-57938637b06a

     

    I have one read scope api://da3cbf4b-c0ae9dc4-f38c-4b47-8a59-57938637b06a/Read

     

    Two authorized client apps:

    5e3ce6c0-2b1f-4285-8d4b-75ee78787346

    1fec8e78-bce4-4aaf-ab1b-5451cc387264

     

    Configuration Teams Channel of CoPilot Studio:

    Screenshot 2024-01-19 at 11.30.57.png

    Where ADD application's client ID was retrieved from the registered app overview tab.

  • adilei Profile Picture
    on 19 Jan 2024 at 11:37:21
    Re: Login Button Not Showing on MS Teams

    In "expose an API", your application URI should follow this pattern: api://botid-{teamsbotid}

    This should also be reflected anywhere else applicable.

     

     
     

    enter-app-id-uri

  • jpiabrantes Profile Picture
    29 on 19 Jan 2024 at 11:52:35
    Re: Login Button Not Showing on MS Teams

    I had one registered app that used that value, I have deleted that registered app but I still can't give that value again in other apps.. So I assumed botid was a placeholder that I could change.

     

    Here's the error when I try to use botid:

    Screenshot 2024-01-19 at 11.50.46.png

  • adilei Profile Picture
    on 19 Jan 2024 at 11:54:04
    Re: Login Button Not Showing on MS Teams

    It's because app URI should be unique. 

  • jpiabrantes Profile Picture
    29 on 19 Jan 2024 at 11:55:23
    Re: Login Button Not Showing on MS Teams

    Sure and it is - because I've deleted the app that was using that URI... Can I get some inhands support? Or maybe solve this with a video call?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 420 Super User 2025 Season 2

#3
DAnny3211 Profile Picture

DAnny3211 132

Last 30 days Overall leaderboard
Loading started
Loading complete