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 / Copilot in Teams not r...
Copilot Studio
Unanswered

Copilot in Teams not returning internal url's

(0) ShareShare
ReportReport
Posted on by 29
I am creating a copilot proof of concept bot.
It's pointing to a SharePoint document library as it's generative knowledge base
Permissions have been set up in Azure applications to access Sharepoint.
 
In the Copilot studio home page, I can test the bot and it returns a correct answer along with the url of the document in SharePoint
In the Copilot Demo website page, it does the same. Returns the same correct answer and the url of the internal document.
 
Within Teams, it does return the correct answer so I know it's actually pulling an answer from the SharePoint library (not making up an AI response) but it does NOT return the url of the document. When asked for the URL of the document I get this response:
 
"For security reasons, I cannot provide specific URLs or direct access to internal documents. However, you can usually find the password policy in the ISO library on the company's intranet or internal document management system. If you have trouble locating it, please contact the IT department or your manager for assistance.
AI-generated content may be incorrect
"
 
The permissions should be correct. This works in both the copilot test environment and in the demo website environment.  It returns the correct answer but refuses to return the url of the document.
The teams user testing this (me) is logged into Teams with the exact same corporate ID on a work laptop.
 
Why is it not providing urls, when it has permission to the corporate SharePoint site and what permission has potentially been missed?
 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Vinoth Selvam Profile Picture
    1,590 Super User 2025 Season 2 on at
     
    Generally the references do appear inside the teams chat also, but it may look differently. There will not be explicit document name mentioned separately, but the reference link is included.
     
     
    Consider in my Copilot, i have a PDF document inside SharePoint. Im trying to ask the Question and it gives the below response with the link for the Document.
     
     
    The Same Copilot Inside the Teams:
     
    I'm trying to ask the same question. It gives the exact same response similar to the test bot.
    The Reference is mentioned as proper link (but not visible separately).
     
    When u click on the reference citation, you can see the file being displayed.
     
     
     
     
     
    Hope this Clarifies !
     
    Thanks.
  • PC-08101546-0 Profile Picture
    29 on at
    Hi
     
    Thank you so much for taking the time to reply to this post. That doesn't seem to happen often looking at all the open questions, so much appreciated.
     
    That's the the exact issue but your teams screenshot is not what I see.  It doesn't return any urls or references to urls.  The Copilot Studio chat box does, and so does the 'demo website' page. Inside of teams I actually get the correct generative answer from my SharePoint library documents, but it point blank refuses to give any urls or url references to that document.
     
    If I then ask it for the reference document, it sometimes will tell me the title of the document, but no clickable reference to it.
    If I ask it for the url of the document, it tells me it can't because of security reasons; which is unexpected
     
    Just doesn't make sense.
     
    I'll be doing some more testing today and update if I find anything.
     
     
  • Suggested answer
    Vinoth Selvam Profile Picture
    1,590 Super User 2025 Season 2 on at
     
    You can check and let know.

    While Copilot may have the necessary permissions to access SharePoint, Teams might be stripping or sanitizing the URLs for security reasons, especially if it doesn't recognize it as a safe link.
     
    If your organization has specific compliance settings or data loss prevention (DLP) policies applied to Microsoft Teams, these may interfere with URLs being shared, particularly external links or links leading to document libraries.
     
    Thanks.
  • Suggested answer
    PC-08101546-0 Profile Picture
    29 on at
    Hi
     
    This now seems to have cleared itself. After a long wait it just started returning references to files instead of that previous generic permission error.
     
    I've not made any significant changes other than just waiting, so it could be a timing thing with changes going through or a temporary blip with the service maybe.
     
    Either way it now appears to be returning answers as expected, with references back to internal documents.
     

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
Romain The Low-Code Bearded Bear Profile Picture

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 257 Super User 2025 Season 2

#3
Sam_Fawzi Profile Picture

Sam_Fawzi 84 Super User 2025 Season 2

Last 30 days Overall leaderboard