Notifications
Announcements
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.
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
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.
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 ?
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.
@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.
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:
Where ADD application's client ID was retrieved from the registered app overview tab.
In "expose an API", your application URI should follow this pattern: api://botid-{teamsbotid}
This should also be reflected anywhere else applicable.
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:
It's because app URI should be unique.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 273 Super User 2025 Season 2
Romain The Low-Code... 271 Super User 2025 Season 2
S-Venkadesh 101 Moderator