cancel
Showing results for 
Search instead for 
Did you mean: 

Microsoft SharePoint API Connectivity Issue

prateekgrover
Level 3
We are facing an unexpected issue for one of the BOTS while connecting with the SharePoint  via API.
While the same code is working on the other BOTS, it is failing in this BOT. Can someone pinpoint what exactly is wrong with this BOT .
Please find the error listed below:
ERROR: System Exception : Unexpected error Error during Web API HTTP Request

HTTP Status Code: 403
_HTTP Response Content: {"error":{"code":"accessDenied","message":"Access denied","innerError"...
3 REPLIES 3

ewilson
Staff
Staff
@prateek grover,

Are all bots using the same credentials to connect via the API or are there different client IDs for each one?

Cheers,
Eric​

prateekgrover
Level 3
@ewilson Yes all the BOTS are using the same Client ID and Client Secret. Just the BOT ID and Password Differs.
Also the BOT was recently updated to M365 version. Do you think it might have lost some relevant access regarding SharePoint due to the upgrade?

Regards,
Prateek​

ewilson
Staff
Staff
Hi @prateek grover,

Since the only difference appears to be the user ID and password of the bot, I would agree that it seems there's a permissions issues or something similar related to that specific user account. Definitely review the permissions on the SharePoint site for that user.

Cheers,
Eric​