I’m struggling with the Sharepoint node. I seem to have a problem on the token refresh part.
When running the node on a schedule trigger, my workflow fails after the first access token has gone out of date.
I’ve already set up other Microsoft oAuth types of credentials for other worflows, which are refreshing tokens with no problem.
I have 1 excel online, 1 onedrive, a few outlook, all working well so I guess, I’ve setup the credentials as it should be : I’ve used the same settings on all.
My app registration do have the offline_access enabled for Microsoft Graph, and I can’t find a specific “offline access” grant in the Sharepoint list.
If someone could help me with how to find where I’ve messed up, it would be very nice
What is the error message (if any)?
Authorization failed - please check your credentials
The access token has expired. It’s valid from ‘6/6/2025 4:40:09 AM’ and to ‘6/6/2025 6:02:23 AM’.
Can someone share the solution for the token refreshing part? If I have to reconnect my oauth MS account, the flow will be useless…
This is a known issue with the Microsoft SharePoint node where OAuth2 tokens aren’t automatically refreshing as expected. Based on the [GitHub issues](Microsoft SharePoint Node - Access token has expired · Issue #16070 · n8n-io/n8n · GitHub), this appears to be a bug where the SharePoint node doesn’t properly handle token refresh, unlike other Microsoft nodes.
Here are a few things to try:
• **Check your App Registration permissions** - Ensure your Azure app has both `Sites.ReadWrite.All` and `offline_access` permissions for Microsoft Graph API
• **Use a workaround** - Some users have had success using the HTTP Request node with OAuth2 credentials instead of the dedicated SharePoint node
• **Monitor the issue** - This appears to be an active bug being tracked by the n8n team, so you may need to manually reconnect periodically until it’s fixed