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.
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.
Was this reply helpful?YesNo
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.