Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
/ SharePointMaid Public archive

A repository to access files on SharePoint site using Graph API, SharePoint REST API v2, by Python.

Notifications You must be signed in to change notification settings

yuu-eguci/SharePointMaid

Repository files navigation

SharePointMaid

A repository to access files on SharePoint site using Graph API, SharePoint REST API v2, by Python.

readme

Ref urls

Run on local env

Create .env

TENANT_ID=***
CLIENT_ID=***
CLIENT_SECRET=***
USER_OBJECT_ID=***
TARGET_SITE_ID=***
TARGET_FILE_PATH=***

Set up Azure Active Directory application

  • Make sure you have the Global administrator role.
  • Go to Azure Active Directory.
  • Left pane, App registrations > New registration
  • Left pane, API permissions > Add permission
    • Select permission User > User.ReadWriteAll and Sites > Sites.ReadWriteAll
    • Push Grant admin consent for TENANT_NAME button
  • Left pane, Certificates & secrets > + New client secret

Now you have...

  • TENANT_ID
  • CLIENT_ID
  • CLIENT_SECRET

what you have to register as environment variables.

About

A repository to access files on SharePoint site using Graph API, SharePoint REST API v2, by Python.

Topics

Resources

Stars

Watchers

Forks

Languages