With the Microsoft® OneDrive® connector, you can use commands in a chain to manage files and folders in Microsoft OneDrive or SharePoint®. 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
Note: To make the connector available for use in your organization's chains, an org security administrator first enables it from Configuration.
- From Chain Builder, 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 Drive type. 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 Advanced Encryption Standard (AES)-256 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 or SharePoint fails:
- Verify the OAuth credentials of the connector's Azure application.
- Check the drive type and ID entered for the connector.