[Python] Can I access a SharePoint using Python, when I have username and password with MFA?

Discussão em 'Python' iniciado por Stack, Abril 23, 2025.

  1. Stack

    Stack Membro Participativo

    Is there any mean to access a SharePoint using an interactive Python script? The conditions are the following:

    • I have username/password for a user that can access the SharePoint online;
    • There is MFA enabled;
    • I can't register a new application on Azure, I have to stick only to the user.

    I had a look to the Office365-REST-Python-Client library, but it seems like it is impossibile to do this without using a client_id (= application registered on Azure) or disabling MFA?

    Continue reading...

Compartilhe esta Página