Forum Discussion
kpieta89
Jan 12, 2025Copper Contributor
Access Sharepoint Online via Python without access to Azure AD
Hi without going into details I would like to access the Sharepoint/OneDrive via Python using the Microsoft Graph API or Sharepoint REST API. As a first step, I understand that I need to register ...
luchete
Jan 14, 2025Iron Contributor
Hello,
Yes, you can access SharePoint or OneDrive without registering the app yourself. Your IT department can create and configure the app in the Azure Portal, then provide you with the client ID, client secret, and tenant ID. Using these credentials, you can authenticate with a Python library like msal to get an access token. This token allows you to make API calls to SharePoint or OneDrive, either with application permissions (no user interaction needed) or delegated permissions (user login required).
Hope it helps!