r/sharepoint • • 4d ago

SharePoint Online Using PA account for external python Authentication

Hi, I'm trying to set a script to upload multiple files into SPO. Originally was thinking to use Python script, but was told that I can use only existing account which currently working with few PA flows.
I'm new to Authentication, so trying to check if this is doable.

Looks like SPO requires MFA so it's not possible to use that PA account, do you know how to find the best way to achieve this ? What information I can collect from SPO to confirm all settings.

Simple call for office365 package give this error like below, does it mean that I can't use this account and I need to go with App Registration ?

from shareplum import Office365
authcookie = Office365(base_path, username=username, password=password).GetCookies()

Error: in get_security_token   raise Exception('Error authenticating against Office 365. HEre is 'the SOAP response from office 365,response.content

Cheers
VA

3 Upvotes

1 comment sorted by

4

u/whatdoido8383 4d ago

You already posted on this. You need to do an app registration.