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 / 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 2 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

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

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard