With the Microsoft® OneDrive® connector, you can use commands in a chain to manage files and folders in Microsoft OneDrive. For example, with this connector, you can:
- Copy, delete, and search for files and folders
- Download and upload files
- List available drives
To enable the connection, the connector uses the Microsoft Graph API. To secure the connection, the connector uses OAuth authentication via a designated application registered with the Microsoft application registration portal or Azure® Active Directory®.
To set up the connector, you'll need:
- An application registered with the Microsoft application registration portal or Azure Active Directory
- The Azure application's OAuth client ID and secret
- The Azure application's scopes, appropriate for the commands the connector will perform
- The type and ID of the drive to connect to
Set Up the Microsoft OneDrive Connector
- From Chains, click Connections and Add Connection .
- Under BizApp Connection, select Microsoft OneDrive and the default CloudRunner.
- Under Basic Info, enter a unique name and description to help identify the connector.
- Under OAuth, enter the OAuth client ID and secret for the connector's Azure application.
- To determine the connector's level of access, enter the Azure application's authentication scope.
- To authorize the connection and OAuth credentials, click Connect.
- Under Properties, enter the connection's details:
Property Details Drive Type Select the type of drive to connect to, such as Drive, Group, User, or Site. To connect to your own user drive, select Current User (Me). Drive Type ID Enter the ID of the drive to connect to, based on the Drive Type property. For example, if Drive Type is User, enter the user ID; if Site, the site ID.
Note: All sensitive credentials are automatically encrypted and stored at 2,048-bit encryption.
- Select the environments to use with the connection, and click Save.
- To test the connection, create and run a chain with the connector's Download File command, and verify it returns a valid output.
If the connection to Microsoft OneDrive fails:
- Verify the OAuth credentials of the connector's Azure application.
- Check the drive type and ID entered for the connector.