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 / Login Button Not Showi...
Copilot Studio
Unanswered

Login Button Not Showing on MS Teams

(2) ShareShare
ReportReport
Posted on 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 at

    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 at

    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 at

    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 at

    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 at

    @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 at

    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 at

    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 at

    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 at

    It's because app URI should be unique. 

  • jpiabrantes Profile Picture
    29 on at

    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

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 273 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard