Microsoft SharePoint (Files & Sites)
Microsoft Graph provides multiple endpoints to work with SharePoint sites, document libraries (drives), and files.
- This section focuses on operations like navigating a site, listing folders/files, and reading/writing Office documents.
- Use it as an entry point to understand which content to read depending on what you’re trying to do.
Prerequisites
Section titled “Prerequisites”Before running the operations described in the pages below, make sure you have:
- Authentication & credentials set up (app registration, token/audience, etc.) — see Authentication.
- A SharePoint Site ID and appropriate Microsoft Graph permission scopes — see Setting Microsoft Graph permission scopes and retrieving the SharePoint Site ID.
Setting Microsoft Graph permission scopes and retrieving the SharePoint Site ID
Prerequisites (permissions/scopes) and the quickest method to retrieve a Site ID.
Navigation and file operations on SharePoint
Navigate from Site to Drive (document library), traverse folders, and perform common file operations (list, download, upload, delete).
Reading & writing Excel files (Microsoft Graph)
Work with Excel workbooks via Microsoft Graph (read ranges/tables, update cells, and write data back to files stored in SharePoint).