BestSync Icon BestSync Help Home / Main Index / Task Wizard

Task Wizard: Browse a folder of OneDrive for Business (Office 365)

Browse a folder in OneDrive for Business

(1). Select "OneDrive for Business" in the "File System" list.

(2). Setup the parameters for connecting to Microsoft OneDrive for Business.

If you have not got an account, you can click "Sign in OneDrive for Business" link to apply a OneDrive for Business or Office 365 Account.

Use http Proxy:

If the local computer is behind a firewall or NAT, usually the computer needs the proxy to connect to the OneDrive.

If this option is checked at the first time, the "http Proxy" dialog box will be popped up for setup up the http proxy server.

(3). Configure consent to BestSync application

BestSync needs "https://graph.microsoft.com/Directory.ReadWrite.All https://graph.microsoft.com/Files.ReadWrite.All " permissions for synchronizing with "OneDrive for Business", these permissions requires admin consent.

If your organization has not configured the consent to BestSync, please follow the below steps to configure consent to BestSync.

a. If you are the administrator of your organization, just press "Admin Consent to BestSync ..." button, in the opened dialogbox, input the tenant ID like "958544??-c6??-4b??-a894-56a86426????" of your orgnization, then press "Open URL" button. In the openned Browser page, just follow the steps to give the permissions to BestSync.

b. If you are not the administrator of your organization, please copy the following URL text, tell the url to your admimistrator, ask your admimistrator replace " {your_tenant_id} " to the tenant id of your organization, then access the url to configure conssent to BestSync application.

https://login.microsoftonline.com/{your_tenant_id}/v2.0/adminconsent?client_id=9de5c5f1-af5b-4c46-9ffb-33b1cc55ad73&state=12345&redirect_uri=https://bestsync.us/oauth2back.html&scope=https://graph.microsoft.com/Directory.ReadWrite.All%20https://graph.microsoft.com/Files.ReadWrite.All

For how to configure consent to application (BestSync) for accessing your data, please refer to the follow page:
https://docs.microsoft.com/ja-jp/azure/active-directory/manage-apps/configure-admin-consent-workflow

This step is an one-time step, from the second time you setup an OneDrive for Business, this step can be skipped.

(4). Do OAuth authentication with OneDive for Business by your account

There are two buttons, "OAuth2 Login" and "OAuth2 Manually", you can press "OAuth2 Login" first to give BestSync permissions to access your OneDrive files by the embedded IE Brower. In case the embedded IE Brower fails to login OneDrive, you can try "OAuth2 Manually" button.

a. If you press "OAuth2 Login", follow the below steps to authenticate your account.

The "OAuth2 Login" dialogbox pops up, input OneDrive for Business or Office 365 Account and password to login OneDrive for Business, allow BestSync to access your OneDrive.
If you login OneDrive for Business successfully, and allow BestSync to access your OneDrive, press "Close" button to complete the authentication.

*In case you see "Please install WebView2 Runtime" message on the screen, please download and install the WebView2 runtime first. Here is the microsoft link for download WebView2
https://developer.microsoft.com/en-us/microsoft-edge/webview2/

b. If you press "OAuth2 Manually", follow the below steps to authenticate your account.

The "OAuth2 Login (Manually)" dialogbox pops up, press "Open URL" button. In the openned Browser page, just follow the steps to give the permissions to BestSync.
If you login OneDrive for Business successfully, and allow BestSync to access your OneDrive, the authenticated code will be displayed in the browser page, like the following screeshot.
OneDrive for Business Authenticated code Copy the authenticated code in the above red border to the clipboard.
Paste the autheticated code to the "OAuth2 Login (Manually)" dialogbox like the following screeshot.
OneDrive for Business Authenticated code
Press "OK" button to complete the authentication.

(5). Click "Go"button to refresh the folder tree.

BestSync lists all the folders in OneDrive for Business, and display the folders in the file tree.

The log window below the file tree logs all the commands sent to OneDrive for Business, and responses from OneDrive for Business.
If the connection between BestSync and OneDrive for Business can not be established successfully, please check the log.

(6). Select the folder in the folder tree for synchronization.

(7). Click "OK"button to end the dialog box


BestSync Icon BestSync Help Home / Main Index / Task Wizard