Library enables user to connect to personal OneDrive and company's SharePoint. Listing SharePoint document libraries (drives) and items, downloading and uploading files.
Get all accessible SharePoint Sites and Personal OneDrive.
| Port | Required | Used for | Description |
|---|---|---|---|
| Output 1 | Yes | Data output | SharePoint Sites ID and name. |
| Output 2 | Yes | Data output | Personal OneDrive ID and name. |
| Output 3 | No | Error output | Error information. |
Lists all Document libraries (drives) from specified SharePoint Site.
Required parameters:
| Port | Required | Used for | Description |
|---|---|---|---|
| Output 1 | Yes | Data output | Document libraries (drives) information. |
| Output 2 | No | Error output | Error information. |
List Items from SharePoint Document library or Personal OneDrive.
Required parameters:
| Port | Required | Used for | Description |
|---|---|---|---|
| Output 1 | Yes | Data output | Items information. |
| Output 2 | No | Error output | Error information. |
Downloads files from SharePoint Document library or Personal OneDrive.
Required parameters:
Optional parameters:
Optional input via dictionary:
| Port | Required | Used for | Description |
|---|---|---|---|
| Output 1 | Yes | Data output | Information about downloaded files. |
| Output 2 | No | Error output | Error information. |
Uploads file to SharePoint Document library or Personal OneDrive.
Required parameters:
| Port | Required | Used for | Description |
|---|---|---|---|
| Output 1 | Yes | Data output | Information about uploaded file. |
| Output 2 | No | Error output | Error information. |
User account in Microsoft Azure Active Directory with assigned Application Developer or Application Administrator role.
Application is used to login to your Azure Active Directory tenant and to access resources using the MS Graph API.
Azure Active Directory > App registrations > New registration
Application has its own client ID (ApplicationName > Overview > Application (client) ID).
Azure Active Directory > App registrations > ApplicationName > Certificates & secrets
Select New client secret.
Provide description and expiration period and add new secret.
Azure Active Directory > App registrations > ApplicationName > API permissions
Select Add a permission.
Choose Microsoft Graph API and Delegated permissions.
List of required permissions:
After adding permission click the Grant admin consent for YourTenantName button.
In the permissions table the Status field will contain the Granted for YourTenantName message.
Please refer to CloverDX documentation to article about Creating OAuth2 Connection.
In Edit OAuth2 Connection window set Azure provider and add values to all properties:
Click Authorize button. Provide user credentials and confirm client application access permissions.
After successful authorization the special file which contains OAuth2 connection tokens is created (ConnectionName.tokens).
Connection can be re-authorized.
User can also authenticate using username and password directly.
In Library configuration provide values for all these parameters: Tenant ID, Client ID, Client Secret, Scope.
Parameter values provided by user: Username, Password.
Note: OAuth2 takes precedence over a username and password authentication method.
Initialization graph (getSitesAndPersonalDrive.grf) generates values for SharePoint Site ID and Drive ID parameters.
Values are in form of Key-Value pair (Site or Drive ID and its name).
After the graph run finished, press Refresh libraries button to see the generated values.