Moveworks’ integration with Dropbox allows your Moveworks AI Assistant to fetch and index content from your Dropbox tenant, ensuring that users can search across documents where they have authorized view permissions.
These instructions are based on OAuth2.0, the recommended mode of authentication that is used by Dropbox. Check out their OAuth Guide to learn more.
To authenticate with Dropbox, we use a service account created within your instance. Please create a service account (eg:svc-moveworks-dropbox@company.com) and add this service account to all of the Folders in your Dropbox tenant from where you want Moveworks to ingest content.
Register a new app with Dropbox by visiting the App Console.
Click on the Create app button.

Select Scoped access, Full Dropbox access and provide a name to the App in the following format: Moveworks-{CompanyName}. Click on Create app to initialize your app.

Now, the App has been created and you will be redirected to the App’s Settings page.

Navigate to the OAuth 2 section in the Settings tab and set http://localhost as one of the Redirect URIs.

Head over to the Permissions tab and check the following scopes required for this integration:
Click on Submit to make sure your Permission changes are saved

Go back to the Settings tab and check out the App key and App secret. Store these values in a safe storage since you will be needing this is the following steps to authenticate the APIs.

Replace the App key in the following URL with your App’s App key and navigate to the URL in your preferred browser
https://www.dropbox.com/oauth2/authorize?client_id=<your_App_Key>&redirect_uri=http://localhost&response_type=code&token_access_type=offlineYou must be a team administrator to authorize this app. Either login to a Dropbox for Business admin account, or contact an existing administrator for your team to authorize.
Once you login, you will see the following page. Click on Continue.

In the next page, review the permissions that the App will require to ingest Content and Permissions from your tenant and click on Allow.

You will be redirected to the localhost. In the URL section, you will see that the URL contains a code. This is your authorization_code.

Use this authorization_code to hit the following API in Postman or any API Client. You will receive an access_token and a refresh_token. Note the refresh_token down. We will use this to configure the Connector in Moveworks Setup later.
Now, we have to use the generated access_token to hit the /members/get_info API to retrieve the Account ID and Root Folder ID of the Service Account that we created above.
Replace the email_id with the email ID of the service account. The API response would be of the following format:
Note the root_folder_id and the team_member_id. We will use this to configure the Connector in Moveworks Setup in the next step.
Use the Connectors > System Connectors module in Moveworks Setup to create the connection between Moveworks and your Dropbox tenant.
Please follow the connectors guide to add the credentials in Moveworks Setup.
Click on CREATE NEW to create a new connector and select Dropbox from the list of systems displayed.
Enter the name of the connection. (Eg: Dropbox)
Select Oauth2 Refresh Token Grant as the Authentication Type.
Enter your App key, App secret, refresh_token, team_member_id and namespace_id in the following manner.

Click on Save to complete the configuration.