web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / 401 Unauthorized - GET...
Copilot Studio
Unanswered

401 Unauthorized - GET Docs from SharePoint via Copilot (& Ms Graph)

(0) ShareShare
ReportReport
Posted on by
Hello everyone, I give you the context of the problem:
 
- I am creating a Copilot from which I want to request information from a SharePoint (List files from a library) from the chat.
- It is an organizational tenant
I have checked that it is configured:
- I registered the application in Azure.
- I checked the execution permissions in Azure
- I connected my SharePoint to Ms Graph
- Checked the permissions
- I generated the token
- I can launch GET actions from the MS Graph itself and it works perfectly.
 
My problem:
When creating a Topic in my Copilot Studio bot so that for example it asks for the list of files in a library.
- I set up an HTTP request
- I add the URL of the request (verified that from Graph it works)
- Get method
- In header I add the key and the value:
{
  “Authorization": ”Bearer TOKEN”
}
- I create a variable to save the response
 
When I execute from the bot the request the system returns me the following error:
Error message: HTTP request error with status code 401 Unauthorized. Error code: HttpRequestFailure Conversation ID: 966ef428-4d79-458c-af92-3a4374665181 Time (UTC): 2024-11-21T12:55:30.605Z
I understand it's a permissions issue (I think so) but I can't seem to figure it out.
Please, can someone help me?
Thanks
 
Categories:
I have the same question (0)
  • SaiRT14 Profile Picture
    1,990 Super User 2025 Season 1 on at
     
    At high level, check out the following:
    Verify Azure AD App Registration permissions and grant admin consent.
    Regenerate a valid access token with the required scopes.
    Configure the HTTP request in Copilot Studio correctly.
    Ensure SharePoint library access permissions are configured at the site level.
     
    if you need more details, pls let me know. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 673

#2
chiaraalina Profile Picture

chiaraalina 170 Super User 2026 Season 1

#3
deepakmehta13a Profile Picture

deepakmehta13a 112

Last 30 days Overall leaderboard