Skip to main content

Notifications

Copilot Studio - Building Copilot Studio Chatbo...
Unanswered

Generative Answers - Sharepoint as source - Authentication Issue

(1) ShareShare
ReportReport
Posted on by 52

Hi

I have Microsoft Teams ONLY authentication turned on; however, I'm getting an error when trying to use Sharepoint as a source for a Generative Answer module.

brodiesky_0-1684997226853.png

 

If I turn on manual authentication, the error does not exist. However, I've been struggling to get manual authentication to work with Microsoft Teams. If I configure Manual Authentication following these guides: 
Configure user authentication with Azure Active Directory - Power Virtual Agents | Microsoft Learn
Configure single sign-on for the Power Virtual Agents app in Teams - Power Virtual Agents | Microsoft Learn
Configure single sign-on for the Power Virtual Agents app in Teams - Power Virtual Agents | Microsoft Learn
The bot just constantly asks me to login, but doesn't provide the same "Login" button that the Bot Test in the Power Virtual Agents dashboard provides.

brodiesky_1-1684997358641.png

 

Additionally, Generative answer doesn't even want to query the Sharepoint site when using the bot on the demo site (where I can successfully authenticate). The bot just stops responding, it doesn't provide any error. I can get the generative answer module to work if I use a public website.

Please advise thoughts.

 

Side note, I should advise I'm unable to complete this step in Azure AD.

brodiesky_2-1684997488796.png

I figure though, for some single user testing, the admin consent is not required. It feels like I shouldn't be experiencing the issues I'm experiencing for simply not granting admin consent.

 

 

 

  • Re: Generative Answers - Sharepoint as source - Authentication Issue

    @HenryJammes @brodie-sky 
    I have the exact issue. Generative AI doesn't work in Teams - only in Test Copilot or a Demo website.

  • aparnaa Profile Picture
    aparnaa 95 on at
    Re: Generative Answers - Sharepoint as source - Authentication Issue

    @HenryJammes is this issue fixed now for sharepoint sites ?

     

    In my "Test Copilot" under topics i am able to generate answers but once i publish the bot in teams its not working

     

    Steps i have done

    1. created a bot
    2. added sharepoint site for which i have access to "Generative AI" section and published
    3. Tried using test copilot and its working as expected but once i publish in teams it is not working
  • KeremKlein Profile Picture
    KeremKlein 2 on at
    Re: Generative Answers - Sharepoint as source - Authentication Issue

    Hello @HenryJammes  

     

    I have the same issue. The bot is configured with the teams sso verification.

    When I'm testing it in the studio, it works fine. But if I test the bot in teams, the bot does not work with the SPO data source. This is the error I get 

    KeremKlein_0-1712136091121.png

     

    Do you know how to fix this?

     

     

     

     

     

  • jamesmuller Profile Picture
    jamesmuller 20 on at
    Re: Generative Answers - Sharepoint as source - Authentication Issue

    I realized the two Client IDs that I have in my App Registration are for The Teams Mobile/Desktop and Teams WebClients

    These were entered per the instructions here:  Configure single sign-on for the Microsoft Copilot Studio app in Teams - Microsoft Copilot Studio | Microsoft Learn

     

    Authorizing a client application indicates that this API trusts the application and users should not be asked to consent when the client calls this API.
     
    I believe this is why I'm not prompted with the login button when using the bot in the Teams Channel but I am in the Web Demo.
     

    Client ID for Microsoft Teams mobile/desktop: 1fec8e78-bce4-4aaf-ab1b-5451cc387264

    Client ID for Microsoft Teams on the web: 5e3ce6c0-2b1f-4285-8d4b-75ee78787346.

     

    I had a quick call with the Microsoft Engineer but no root cause.  He was ending his shift for the day due to the time zone and was going to look for another engineer who may be able to continue to work on it or hopefully pick back up tomorrow.

     

    @HenryJammes under the Copilot Studio bot authentication settings your screen shot showed you had the Toke Exchange URL Blank.  Was this intentional?  I added it because it was called out here:

    Configure single sign-on for the Microsoft Copilot Studio app in Teams - Microsoft Copilot Studio | Microsoft Learn

  • Hellman Profile Picture
    Hellman 10 on at
    Re: Generative Answers - Sharepoint as source - Authentication Issue

    Hi @jamesmuller - I have now also submitted a support request.

    If you could please share anything you learn that would be greatly appreciated, and I will do the same.

    Thanks,

    Hellman

  • HenryJammes Profile Picture
    HenryJammes on at
    Re: Generative Answers - Sharepoint as source - Authentication Issue

    @Hellman - SSO is possible on Teams, this was an error from me at the time.

    Let me check again

  • Hellman Profile Picture
    Hellman 10 on at
    Re: Generative Answers - Sharepoint as source - Authentication Issue

    Hi @HenryJammes - hmmm, my test user does not get a sign-in button within the Teams channel.

    I assume this is because I set up SSO for Teams, whereas you've left Token Exchange URL setting blank.

     

    Did you do that intentionally because SSO cant work with Generative Answers + SharePoint on a Teams channel for some reason? I know you seemed to state that in your 06-23-2023 06:22PM post in this thread ("...SSO isn't an option..."), but I dont understand why this would be.  And its a somewhat odd end-user experience to already be logged into Teams but still need to click a sign-in button just in this chatbot app, so I am really hoping SSO can somehow work.

     

    Would really love to know whether I am doing something wrong, or whether this just a temporary issue/limitation with SSO that Microsoft is working to resolve, in which case I can stop banging my head and will just need to wait a bit.

    I'll open a support request, but any insights you can share in the meantime would be wonderful.

     

    Thanks again,

    Hellman

  • jamesmuller Profile Picture
    jamesmuller 20 on at
    Re: Generative Answers - Sharepoint as source - Authentication Issue

    Hi @HenryJammes ,

    I have a support request opened yesterday but I'm still waiting for an engineer to call me.

    Case 2311290010003493

  • HenryJammes Profile Picture
    HenryJammes on at
    Re: Generative Answers - Sharepoint as source - Authentication Issue

    This works OK for me, even for my test user.

    The only thing I noticed is that my user had to use the sign-in button.

     

    Not sure we can troubleshoot this in this thread.

    Can you open a support request? 

    Get Help + Support in Power Platform - Power Platform | Microsoft Learn

  • jamesmuller Profile Picture
    jamesmuller 20 on at
    Re: Generative Answers - Sharepoint as source - Authentication Issue

    Hi @HenryJammes ,

     

    I noticed two differences.

     

    1. The Copilot Studio bot authentication settings:
      1. Under Authorization you left the Token Exchange URL blank.
    2. Azure App Registration:
      1. Under the Expose API setting you do not have any Authorized Client Applications

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,567

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard

Featured topics