Skip to main content

Intro

Microsoft OneDrive for Business is an online file sharing and personal cloud content management service for businesses. For more information about the OneDrive API, see https://msdn.microsoft.com/en-us/lib…/dn659752.aspx. You connect to your OneDrive for Business account in the Data Center. This topic discusses the fields and menus that are specific to the OneDrive for Business connector user interface. General information for adding DataSets, setting update schedules, and editing DataSet information is discussed in Adding a DataSet Using a Connector.

Prerequisites

To connect to your OneDrive for Business account and create a DataSet, you must have the following:
  • A OneDrive for Business client secret
  • A Microsoft username and password
If you are using the Microsoft Graph, you will need to set your redirect_uri to a different URL depending on whether you are using a newly registered or existing app. For instructions about obtaining a OneDrive for Business client ID, client secret, and registering your app using SharePoint Server 2016, see https://dev.onedrive.com/app-registration-server.htm. For instructions about registering your app for Microsoft Graph, see https://docs.microsoft.com/en-us/onedrive/app-registration.htm To connect to Microsoft OneDrive for Business to retrieve the information, you must have the following:

Setting Up the Azure Portal Video

To set up the Azure portal, watch the YouTube video, How to Set Up the OneDrive for Business Connector.

To Obtain the OneDrive CLIENT ID:

  1. Go to https://portal.azure.com.
  2. Select Microsoft Entra ID (https://learn.microsoft.com/en-us/entra/fundamentals/new-name)> App registrations.
  3. Find and click on your web app.
  4. The “application” ID is your CLIENT ID.

To obtain the OneDrive CLIENT SECRET:

  1. Go to https://portal.azure.com.
  2. Select Microsoft Entra ID (https://learn.microsoft.com/en-us/entra/fundamentals/new-name)> App registrations.
  3. Find and click on your web app.
  4. Open Certificates and secrets.
  5. Click +New Value.
  6. Provide the value description and the expiry period for your secret. Click Add.
  7. Your new value will appear. Copy the Value field and paste it in your Domo connector Value field. Secret.png

Creating an Azure App for Enterprise OAuth

To create a Microsoft Azure app, do the following:
  1. Log into https://portal.azure.com.
  2. Click on App registrations. Capture1.PNG 3. Click New registration.
  3. Enter the application name and select the supported account type. Enter the Redirect URI for Web as https://oauth.domo.com/api/data/v1/oauth/providers/microsoft-onedrive-business/exchange.
    Screenshot
  4. Click Register.
  5. Now, click API Permissions. API_permission.png 7. Click +Add Permissions button.
  6. Select the permissions as required.
  7. After adding the permissions, all configured permissions will be listed as below.
    Permissions modified.jpg

Connecting to Your OneDrive for Business Account

This section enumerates the Permission settings within Microsoft needed for Domo access as well as options in the Credentials and Details panes in the OneDrive for Business Connector page. The components of the other panes in this page, Scheduling and Name & Describe Your DataSet, are universal across most connector types and are discussed in greater length in Adding a DataSet Using a Data Connector.

Credentials Pane

This pane contains fields for entering credentials to connect to your OneDrive for Business account. The following table describes what is needed for each field: Once you have entered these credentials, you are taken to the Microsoft login screen, where you can enter the username and password for your Microsoft account. After you successfully connect, you can use the same account any time you go to create a new OneDrive for Business DataSet. You can manage connector accounts in the Accounts tab in the Data Center. For more information about this tab, see Managing User Accounts for Connectors.

Details Pane

This pane contains a primary Report menu, along with various other menus which may or may not appear depending on the report type you select.

Report

Select the OneDrive for Business report you want to run. The following reports are available:
Deprecated reports: Use the Download Shared File (Using SharingURL) report instead of any of the deprecated reports listed above.

Other Menus

The following menus may also appear depending on the report you select:

FAQ

You can use the Download Shared File (Using SharingURL) report to access shared files. This report supports the following file formats: CSV, XLS, XLSX, XML, ZIP, and GZIP.
The Sharing URL can be obtained through two distinct methods:
    • Browser Address Bar: Use the file’s URL as displayed in the browser address bar during file viewing.
    • OneDrive Generation: Utilize the URL generated by OneDrive upon selecting Copy link from the Share menu.
      Screenshot
Dataset recreation isnot required. You can change the report the connector is using in the connector details to Download Shared File (Using SharingURL) report and enter the URL of the target file. The dataset settings and schema will remain unchanged.
You need the client ID and client secret of your OneDrive App.
Datasets should be set to update no more than once per hour.
Microsoft limits API calls on a per-user/per-app basis. To prevent rate limiting, reduce the number of datasets scheduled to run at the same time.