[Python] How to use SharePoint API in Python to upload a file with full permissions for public...

Discussão em 'Python' iniciado por Stack, Março 17, 2025.

  1. Stack

    Stack Membro Participativo

    I want to upload a file to SharePoint Online using Python and ensure that:

    The file is uploaded to a specific document library/folder. The uploaded file has permissions set so anyone with the link can access it (view/download). I use the best authentication method (OAuth, NTLM, or any other recommended approach).

    What I Need Help With: Which SharePoint API should I use? (REST API, Graph API, or another approach?) What is the best authentication method to upload a file programmatically using Python? How do I set permissions so the file is accessible via a public link?

    I would appreciate an example or the best approach for handling authentication, upload, and permission settings.

    Continue reading...

Compartilhe esta Página