r/sharepoint • u/Valuable-Ant3465 • 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.contentCheers
VA
3
Upvotes
4
u/whatdoido8383 4d ago
You already posted on this. You need to do an app registration.