Onedrive
The OneDrive plugin lets you manage files and folders in Microsoft OneDrive. It supports uploading, downloading, copying, moving, renaming, deleting, searching, and sharing files and folders, as well as listing folder contents. The plugin authenticates using OAuth with a Tenant ID, Client ID, Client Secret, and Refresh Token. Use this plugin when your workflows need to automate file management, content distribution, or collaboration tasks on OneDrive.
Prerequisites:
- Azure AD instance with access details.
- Appropriate user (Delegated) permissions. For more information, refer Microsoft Documentation as mentioned in references below.
- Microsoft Account with all the required permissions for the application.
- Values for Client ID, Refresh Token should be known.
- Provide access to the following URLs through firewall and network:
a. https://graph.microsoft.com
b. https://login.microsoftonline.com
References: For information on application setup and refresh token refer Microsoft documentation link:
Refresh Token for connection to OneDrive In One Drive Plugin Connection Configuration we need to provide connectivity details for a -OneDrive instance as mentioned in the table below.
Connection Details:
| No. | Field Name | Datatype | Mandatory? | Description |
|---|---|---|---|---|
| 1 | Client ID | String | -- | Client ID provided by Azure Active Directory. |
| 2 | Refresh Token | String | Yes | Refresh Token provided by authorization grant flow discussed in sections below. |
| 3 | Test Connection | Button | -- | Verifies whether the connection is established or not. |
Following are the steps for generating refresh token for OneDrive plugins,
i. Register app for OneDrive on Azure AD, refer OneDrive Refresh Token: Register app for OneDrive on Azure AD.
ii. Generate Refresh Token for OneDrive, refer OneDrive Refresh Token: Generate Refresh Token OneDrive.
Get OneDrive Folder or File - Path Folder or File – Path/ID is required in most OneDrive Plugin steps. Refer Appendix 13: OneDrive Folder/File Path to get path.