on-internet
← Community

Python to SharePoint SPO, upload files, what is best Auth in 2026

Stack Overflow ·

I d like to create script to upload fies(or single file to start) to SPO from //network drive, and just realized that MS made big changes for Auth. Even chatGPT/Copilot didn't learn it yet. What is the best packages/approach to do this ? is this using MSAL library ? I though that I know enough for API, but dealing with SPO looks special. I was able to get my token, but can't go further target folder on SPO: https://cbx28.sharepoint.com/sites/MySite/SitePages/CollabHome.aspxShared Documents/Reports I did my homework in Azure with app registration, but probably missed something ?? import os impo

Comments

Sign in or sign up to comment and upvote.

No comments yet.