{"id":27245464,"url":"https://github.com/yuu-eguci/sharepointmaid","last_synced_at":"2025-04-10T21:19:14.458Z","repository":{"id":51549009,"uuid":"321904013","full_name":"yuu-eguci/SharePointMaid","owner":"yuu-eguci","description":"A repository to access files on SharePoint site using Graph API, SharePoint REST API v2, by Python.","archived":false,"fork":false,"pushed_at":"2021-05-11T09:09:33.000Z","size":24,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2023-03-03T13:12:38.317Z","etag":null,"topics":["github-actions","graph-api","openpyxl","python","sharepoint-online","slack-webhook"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuu-eguci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-16T07:31:52.000Z","updated_at":"2021-04-17T06:28:29.000Z","dependencies_parsed_at":"2022-08-21T17:00:27.503Z","dependency_job_id":null,"html_url":"https://github.com/yuu-eguci/SharePointMaid","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuu-eguci%2FSharePointMaid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuu-eguci%2FSharePointMaid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuu-eguci%2FSharePointMaid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuu-eguci%2FSharePointMaid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuu-eguci","download_url":"https://codeload.github.com/yuu-eguci/SharePointMaid/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248298409,"owners_count":21080340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","graph-api","openpyxl","python","sharepoint-online","slack-webhook"],"created_at":"2025-04-10T21:19:14.006Z","updated_at":"2025-04-10T21:19:14.445Z","avatar_url":"https://github.com/yuu-eguci.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"SharePointMaid\n===\n\nA repository to access files on SharePoint site using Graph API, SharePoint REST API v2, by Python.\n\n![readme](https://user-images.githubusercontent.com/28250432/102326219-77730300-3fc7-11eb-8a42-8b0b5ae0822a.png)\n\n## Ref urls\n\n- [SharePoint APIs](https://docs.microsoft.com/ja-jp/sharepoint/dev/sp-add-ins/sharepoint-net-server-csom-jsom-and-rest-api-index)\n- [Graph REST API v1.0](https://docs.microsoft.com/ja-jp/graph/api/overview?view=graph-rest-1.0) what this repository uses\n- [Graph Explorer](https://developer.microsoft.com/ja-jp/graph/graph-explorer) what allows Graph API emurations\n\n## Run on local env\n\nCreate .env\n\n```\nTENANT_ID=***\nCLIENT_ID=***\nCLIENT_SECRET=***\nUSER_OBJECT_ID=***\nTARGET_SITE_ID=***\nTARGET_FILE_PATH=***\n```\n\n## Set up Azure Active Directory application\n\n- Make sure you have the Global administrator role.\n- Go to Azure Active Directory.\n- Left pane, App registrations \u003e New registration\n- Left pane, API permissions \u003e Add permission\n    - Select permission User \u003e User.ReadWriteAll and Sites \u003e Sites.ReadWriteAll\n    - Push Grant admin consent for TENANT_NAME button\n- Left pane, Certificates \u0026 secrets \u003e + New client secret\n\nNow you have...\n\n- TENANT_ID\n- CLIENT_ID\n- CLIENT_SECRET\n\nwhat you have to register as environment variables.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuu-eguci%2Fsharepointmaid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuu-eguci%2Fsharepointmaid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuu-eguci%2Fsharepointmaid/lists"}