This page describes how to connect OneDrive to Agentspace Enterprise.
Use the following procedure to sync data from OneDrive.
After you set up your data source and import data the first time, the data store syncs data from that source at a frequency that you select during setup.
Limitations
Incremental sync does not detect folder-level actions like Copy, Move, or Rename.
Before you begin
Before setting up your connection:
Set up access control for your data source. For information about setting up access control, see Use data source access control.
To obtain the client ID and client secret, do the following:
Create an Entra ID application:
- Sign in to Microsoft Entra administrator center and click Application.
- In the Application drop-down list, click App registrations.
- In the App registrations page, click New registration.
- Click Add new registration and do the following:
- Enter a name for the application.
- Under Supported account types, select Accounts in the organizational directory only.
- Under Redirect URI, add a web redirect URI pointing
to
https://vertexaisearch.cloud.google.com/console/oauth/sharepoint_oauth.html
.
- Click Register.
Register API client form Save credentials:
On your registered application window, save the following values for later use:
- Use the Application (client) ID to set the Client ID parameter.
- Use the Directory (tenant) ID to set the Azure Tenant parameter.
Save credentials Create client secret:
- Navigate to Certificates & secrets and create a new client secret:
- Click New client secret and specify the required duration.
Click Add.
Add client secret Save the client secret and copy the key value for later use.
Configure API permissions
To configure APi permissions, use one of the following options:
Manual assignment:
Open API permissions for the app.
API permissions Add the following permissions and grant admin consent to all permissions.
Permission Type Description Files.Read.All Application Read files in all site collections Group.Read.All Application Read all groups User.Read.All Application Read all users' full profiles
Manifest file:
- Go to the Manifest tab.
Delete the contents between
[
and]
underrequiredResourceAccess
.Edit the manifest file Paste the following JSON between the brackets.
{ "resourceAppId": "00000003-0000-0000-c000-000000000000", "resourceAccess": [ { "id": "01d4889c-1287-42c6-ac1f-5d1e02578ef6", "type": "Role" }, { "id": "5b567255-7703-4780-807c-7be8301ae99b", "type": "Role" }, { "id": "df021288-bdef-4463-88db-98f22de89214", "type": "Role" } ] }
Return to API permissions.
Confirm all required permissions are present.
Grant administrator consent.
Get the instance URL
Use the OneDrive root URL to get the instance URL. For more information, see OneDrive URLs documentation.
Create a OneDrive connector
Console
To use the Google Cloud console to sync data from OneDrive to Agentspace Enterprise, follow these steps:
In the Google Cloud console, go to the Agentspace page.
In the navigation menu, click Data stores.
Click
Create data store.On the Select a data source page, scroll or search for OneDrive to connect your third-party source.
Enter your OneDrive authentication information.
Select the following entities to sync:
- Files
Not all MIME_TYPES supported
Optional: Add filters for the File entity.
fileName
matches the filename only.filePath
must be a full Microsoft Graph API path, usually prefixed with/drive/root:. filePath
filter that matches the path prefixes.
Click Continue.
Select a region for your data store.
Enter a name for your data store.
Select a synchronization frequency for your data store.
Click Create. Agentspace Enterprise creates your data store and displays your data stores on the Data stores page.
To check the status of your ingestion, go to the Data stores page and click your data store name to see details about it on its Data page. The Connector state changes from Creating to Running when it starts synchronizing data. When ingestion is complete, the state changes to Active to indicate that the connection to your data source is set up and awaiting the next scheduled synchronization.
Depending on the size of your data, ingestion can take minutes or hours.
Next steps
To attach your data store to an app, create an app and select your data store following the steps in Create an app.
To preview how your search results appear after your app and data store are set up, see Preview search results. If you used third-party access control, see Preview results for apps with third-party access control.