Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Answered

Can't generate answers from Sharepoint using Generative AI

(0) ShareShare
ReportReport
Posted on by 12

Bot doesn't provide any information about the documents (word and pdf) I saved in my SP.  I created another bot but this time using uploaded documents (same ones saved in SP) instead and this process works.  All permissions were properly set as I am able to sign in using the prompt.

 

How do I resolve this?

 

P.S.  another bot has no issues generating answers coming from a public website

  • kush-sg Profile Picture
    on at
    Re: Can't generate answers from Sharepoint using Generative AI

    I'm encountering a similar problem where my co-pilot can't access the site files. During the app registration process, I enabled scopes [Files.Read.All, Sites.Read.All, and openid] , but I overlooked adding User.Read and profile scopes. Could this omission be the reason my co-pilot isn't functioning?

    Thanks in Advance

  • jovson Profile Picture
    12 on at
    Re: Can't generate answers from Sharepoint using Generative AI

    It worked!  Thank you!

  • Verified answer
    adilei Profile Picture
    on at
    Re: Can't generate answers from Sharepoint using Generative AI

    Yes, consent is needed for those additional scopes as well. 

  • jovson Profile Picture
    12 on at
    Re: Can't generate answers from Sharepoint using Generative AI

    I followed the steps in ms learn and those were the only items to be checked.

     

    jovson_0-1703003004606.png

     

    I'll give it a try and see how it goes.

     

    Do I need Admin consent to these 2 scopes as well?

     

    jovson_1-1703003219350.png

     

  • adilei Profile Picture
    on at
    Re: Can't generate answers from Sharepoint using Generative AI

    See here: Generative answers with Search and summarize - Microsoft Copilot Studio | Microsoft Learn

     

    You are missing two scopes in your app registration and copilot authentication settings: Files.Read.All and Sites.Read.All

     

    Without those scopes Copilot Studio will not be able to call graph search on behalf of the user.

  • jovson Profile Picture
    12 on at
    Re: Can't generate answers from Sharepoint using Generative AI

    I think it might be the Admin consent set currently to "No"?  Here are the current details:

     

    jovson_1-1702993667923.png

     

     

    jovson_0-1702993555477.png

     

  • adilei Profile Picture
    on at
    Re: Can't generate answers from Sharepoint using Generative AI

    Gen Answers over SharePoint relies on Graph search, so if Graph API does not return any results, the copilot will not respond. See here on how to diagnose if that is the case. I suggest you share the app registration details and copilot authentication settings just in case.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 76

#2
Pablo Roldan Profile Picture

Pablo Roldan 61

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard