How to use Microsoft Graph REST Configuration for SharePoint automation
If you are working with SharePoint Online, we recommend switching to Microsoft Graph Connection, which fully supports Modern Authentication. First, you will have to set up your own app on Azure Portal, and then from the app you created, use your app credentials during token generation, like client_id, client_secret and tenantId.
For detailed instructions, follow the "Quick Start" called "Establish Connection" in the Microsoft Graph Connection documentation, which also includes instructions and links to Microsoft documentation on how to register your app on the Azure Portal. When generating the token, enter the required Scopes based on your business needs. The default is: offline_access Sites.ReadWrite.All Files.ReadWrite.All Files.ReadWrite and generally described as follows:
- Token Refresh use: offline_access
- SharePoint lists use: Sites.ReadWrite.All
- File Transfer Task with SharePoint use: Files.ReadWrite.All Files.ReadWrite
Additional Resources: