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 / Generative Answers - S...
Copilot Studio
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.

 

 

 

I have the same question (0)
  • HenryJammes Profile Picture
    on at

    Hi @brodie-sky, thank you for your exploration of these new capabilities!

     

    While PVA doesn't support SSO for Microsoft Teams when you setup manual authentication, authentication should work once you click the Login button in Teams.

    Once you're authenticated, Generative Answers should work over a SharePoint site:

     

    HenryJammes_0-1685012306533.png

     

    With Manual authentication, because it's using an Azure Active Directory application to retrieve the internal files and pages the logged-in user has access to, it needs some delegated API permissions: Files.Read.All and Sites.Read.All.

     

    HenryJammes_1-1685012436951.png

     

    These permissions require admin consent for them to work in PVA.

     

    HenryJammes_2-1685012675904.png

     

    If admin consent isn't provided, it won't be able to return results:

    HenryJammes_3-1685012712096.png

     

    Regarding the AuthenticationInputNotEnabled error in the topic checker when you use "Only in Teams" authentication:

     

    HenryJammes_5-1685012936388.png

     

    It looks like it's not blocking. I'll raise it internally so can fix this bug.

    It works for me in the test pane:

     

    HenryJammes_6-1685012988624.png

     

  • Sow234 Profile Picture
    Microsoft Employee on at

    Hi @brodie-sky ,

     

    I am also testing the same feature to connect to SharePoint, but I am facing the below error. Could you please guide me on where to provide authentication details?

    Sow234_0-1685013287261.png

     

  • HenryJammes Profile Picture
    on at

    @Sow234 wrote:

    Hi @brodie-sky ,

     

    I am also testing the same feature to connect to SharePoint, but I am facing the below error. Could you please guide me on where to provide authentication details?

    Sow234_0-1685013287261.png

     


    Hi @Sow234, I see you're internal, can you please ping me?

    I don't see an error message in your screeshot.

  • brodie-sky Profile Picture
    52 on at

    Ah okay! Great!

    So I can just use Teams authentication. I'll stick with that.
    The only reason I went down the path of manual authentication is because of the error I was seeing.

    I'll test on my end shortly. Thanks for the swift response!

  • brodie-sky Profile Picture
    52 on at

    @HenryJammes is there any additional configuration required to get “only teams” authentication to work with Sharepoing querying?

     

    I’m still having issues.

     

    Can the Sharepoint only contain PDFs? Or does it need pages with text also?

  • brodie-sky Profile Picture
    52 on at

    @HenryJammes false alarm. It seems to be working now

  • brodie-sky Profile Picture
    52 on at

    @Sow234 @HenryJammes sorry about the influx of posts. I think a small, but great addition, will be some kind of feedback if the generative answer fails. Right now it just silently fails.

  • HenryJammes Profile Picture
    on at

    As far as I know it should work with files (pdf, docx, pptx) and pages (aspx)

  • brodie-sky Profile Picture
    52 on at

    @HenryJammes I think the generative answers module is struggling with anything that isn't just a webpage with text, including Sharepoint. It seems to be much more responsive with Sharepoint pages that are text, vs PDF's, PPTX, and DOCX files uploaded into Sharepoint.

    Do you have any inside intel that may support this?

  • brodie-sky Profile Picture
    52 on at

    @HenryJammes I think Teams Only authentication still has issues accessing Sharepoint links when the bot is actually being used in Teams. When testing in the PVA test panel, I seem to be able to generative answers working most of the time, but when using the bot in teams, I can only get generative answers to work with a public website.

     

    Is there further configuration that I'm missing for teams only authentication.

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

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard