Unidades conectadasDepende de cómo esté configurado Ivy

Connected drives bring the files your organisation already keeps in Microsoft 365 or Google Drive into Ivy spaces, without copying them. A space admin mounts a SharePoint document library or a Google shared drive, or a folder in one of them, as a folder of the space. The drive is then linked to the space: everyone in it lists, opens, edits and saves those files in Ivy, agents included, and every change goes straight to Microsoft or Google. Nobody connects their own Microsoft or Google account: Ivy uses only your organisation’s app access to the drives an organisation admin selected, and stores no personal Microsoft or Google tokens.

This page explains how connected drives behave and what admins decide. The provider guides walk through the setup:

How a mount works

A mount is a space folder whose contents live at the provider. Everything below it is the provider’s: its names, its folders, its versions and its permissions. Ivy keeps:

  • the mount itself (which drive and folder, where it sits in the space, who created it);
  • a change cursor per mounted drive, so open file browsers refresh when files change;
  • a short-lived copy of files that were opened, after they were scanned for malware, shared by the space’s members.

Ivy never keeps a copy of the drive, and keeps no personal Microsoft or Google accounts or tokens. Files in a mount don’t count towards your Ivy storage.

The provider is the source of truth. Every listing and every open asks the provider again, with the organisation’s app access to the drive (see Service access). Everyone in the space sees the same contents, and their Ivy role in the space decides what they may do: viewers read, editors also write. Anything the provider refuses looks like a file that doesn’t exist (404).

Space membership is the access control. Mounting a library gives everyone in the space access to it through Ivy, whether or not they have access at Microsoft or Google. Mount a drive only in spaces whose members may all see it. This keeps permissions simple: one place, the space’s members and roles in Ivy, decides who sees a drive, and an agent shows every member the same files. The provider’s audit log records Ivy’s app as the one reading and writing; Ivy’s own audit log records which person did it.

Only shared locations can be linked to a space: SharePoint document libraries and Google shared drives that an organisation admin selected under Service access. A OneDrive or a My Drive belongs to one person and can’t be selected, and a drive that isn’t selected answers 422 drive_not_selected.

Mounts can sit in any Ivy folder or at the space root, but not inside another mount (409 nested_mount). The same library or drive can be mounted in several spaces. Removing a mount deletes only the Ivy folder; nothing at the provider changes. Renaming or moving the mount folder in Ivy changes only Ivy’s label and location.

Turning it on

  1. An organisation admin turns the provider on in Settings → Connected drives, confirming their identity again (step-up). For Microsoft 365, Ivy then sends them to Microsoft’s admin consent page; the provider stays pending consent until a tenant admin accepts. For Google Drive, Ivy shows the address of its service account.
  2. The organisation admin gives Ivy access to the SharePoint sites or Google shared drives the organisation wants to use, and then enters their addresses under Settings → Connected drives → Service access to select them (see Service access).
  3. A space admin mounts one of those drives, or a folder in it, from the space’s files (Connected drive in the Files toolbar). The picker lists the selected drives and browses them with Ivy’s app access, so the space admin needs no Microsoft or Google account of their own. API keys can’t mount.

Everyone in the space can then use the mount. An organisation admin who turns a provider off stops every mount of that provider at once; the mounts stay and show “Turned off by your organisation”.

Opening files: scanned on fetch

Ivy never serves bytes it hasn’t scanned for malware, and that includes files from connected drives. The first time someone opens or downloads a file:

  1. Ivy checks their space role and asks the provider for the file’s details.
  2. A background job downloads the file, scans it with ClamAV and stores the clean copy in Ivy’s object storage, in the EU, for that space only.
  3. Until the scan is done, the API answers 409 file_scanning with a Retry-After header (usually 2 seconds). Ask again after that; the web app does this for you.

The scanned copy is kept for 15 minutes by default and served only to members of that space, after their role is checked again. A change at the provider gives the file a new content tag, so the next open fetches the new version. Malware results are reused by the file’s SHA-256 hash for 30 days, which says nothing about who has the file. An infected file answers 409 file_quarantined; a file the scanner couldn’t read (an encrypted Office file with a sensitivity label, for example) answers 409 file_scan_failed.

Large files link out. Files over 100 MiB (the installation’s limit) aren’t served, previewed or given to agents through Ivy. The API answers 409 file_too_large_to_scan with details.web_url, and the web app offers “Open in SharePoint” or “Open in Google Drive” instead.

Google Docs, Sheets and Slides have no file to download. They open as a scanned export: PDF for viewing, and DOCX, XLSX, PPTX or PNG for downloads (GET …/files/{id}/content?format=docx). Agents read Docs as Markdown, Sheets as CSV (the first sheet) and Slides as plain text. Google limits exports to 10 MB, so larger documents link out. They can be renamed, moved and deleted in Ivy, but not edited: the web app offers “Edit in Google Docs”.

Saving and conflicts

Saving a file in a mount writes a new version at the provider, which keeps the old one. Writes aren’t staged in Ivy: the bytes go straight to Microsoft or Google, whose own malware scanning applies, and Ivy scans the new version the next time anyone opens it.

A connector file’s current_version_id is the provider’s content tag. As for Ivy files, PUT …/files/{id}/content needs If-Match with the version you started from; if someone changed the file at the provider in the meantime, Ivy answers 412 version_conflict with details.current_version_id, and the editor offers the usual choices: keep yours as a new version, reload theirs, or save yours as a copy. Microsoft checks the version itself. Google Drive has no conditional upload, so Ivy compares the version immediately before writing, which leaves a gap of milliseconds.

Confirmations and deleting

Deleting a file or folder in a mount moves it to the provider’s recycle bin (SharePoint) or trash (Google Drive), where it can be restored there. Ivy’s own trash doesn’t apply. The delete dialog says where the item goes.

Agents and code sandboxes never delete a connector file, or overwrite one where the provider keeps no version, without the person’s confirmation: such changes always wait as pending changes for the person to approve. Flows, which have no person to ask, skip them and list them in the result.

What doesn’t apply

  • Share links. Ivy share links can’t be created for anything in a mount (422 unsupported_by_source). Share it from SharePoint or Google Drive instead, where the provider’s own sharing rules apply.
  • Search. Ivy search doesn’t include files in mounts yet.
  • Moves across drives. Files move within one drive. Moving between a mount and an Ivy folder, or between two drives, answers 422 unsupported_by_source.
  • Restoring old Google revisions. Download the revision instead.

Capabilities

Each entry in a mount carries capabilities that follow the provider, after the caller’s space role is applied as for Ivy entries:

Capability Ivy Microsoft 365 Google Drive (files) Google Docs, Sheets, Slides
write (new versions, create) ✓ ✓ ✓ ✗ (edit in Google)
rename ✓ ✓ ✓ ✓
move_within ✓ ✓ (same drive) ✓ (same drive) ✓ (same drive)
versions (history) ✓ ✓ ✓ (revisions) ✗
restore_version ✓ ✓ ✗ (Drive API has none) ✗
trash ✓ (Ivy trash) ✓ (recycle bin) ✓ (Drive trash) ✓
search ✓ ✗ ✗ ✗
range_read ✓ ✓ (from the cache) ✓ (from the cache) ✗
server_scan (served bytes scanned) ✓ ✓ (scan on fetch) ✓ (scan on fetch) ✓ (exports scanned)
metered (counts towards storage) ✓ ✗ ✗ ✗
share links ✓ ✗ ✗ ✗
cross-drive or cross-source move – ✗ ✗ ✗

OneNote notebooks and other items that aren’t files are listed as links that open at Microsoft.

Service access

Ivy reaches a drive linked to a space with the organisation’s app access, never with a person’s account. App access reaches only the SharePoint sites and Google shared drives an organisation admin selected:

  • Microsoft 365: Ivy’s app has the Sites.Selected application permission, which grants nothing by itself. A tenant admin grants it access site by site (how).
  • Google Drive: Ivy has a service account, which your Google Workspace admin adds as a Content manager of each selected shared drive (how). Ivy never uses domain-wide delegation, which would let it act as anyone in your domain.

In Ivy, an organisation admin then selects the same sites or shared drives in Settings → Connected drives → Service access (with step-up), by entering their address. Nobody signs in to Microsoft or Google for this: Ivy looks the address up with its app access.

  • Microsoft 365: enter the SharePoint site’s address, such as https://contoso.sharepoint.com/sites/Legal. Ivy finds it only if the site was granted first, and only in the tenant that gave admin consent; it then lists the site’s document libraries, and you select one or more.
  • Google Drive: enter the shared drive’s address (from the browser’s address bar) or its ID. Ivy’s service account serves every organisation on Ivy cloud, so Ivy also checks that you are a Manager of that shared drive: the email address you sign in to Ivy with must be one of its managers.

Only SharePoint document libraries and Google shared drives can be selected, never a OneDrive or a My Drive. Ivy checks the app’s access to each one and shows granted or missing grant. Space admins can mount only selected drives.

Flows and API keys act as a service identity and use the same mounts with the same app access, within their space role.

When an organisation admin removes a drive from Service access, its mounts stay but show “An organisation admin needs to give Ivy access to this drive again” and no contents (connector.access is no_service_access); reads and writes answer 403 connector_no_access.

Revocation

Each of these takes effect at once, in the same request:

  • An organisation admin removes a drive from Service access: its mounts stop showing contents and their scanned copies are deleted.
  • An organisation admin turns a provider off: every mount of that provider stops and every scanned copy is deleted.
  • A space admin removes a mount: its files can no longer be reached through Ivy.

Removing someone from a space needs nothing extra: every request checks their space role first, so they lose access to its mounts at once. Deactivating or erasing a person (including through SCIM) leaves nothing to revoke at Microsoft or Google, because Ivy holds no tokens of theirs.

You can also end Ivy’s access from the provider’s side: delete the site grant or the Ivy enterprise application in Microsoft Entra ID, or remove Ivy’s service account from a shared drive.

Change detection

Ivy reads each mounted drive’s changes (Microsoft Graph delta, Google Drive changes) every 5 minutes, and sooner when Microsoft or Google notifies it. For every changed file, Ivy drops its scanned copies and tells open file browsers to refresh. Notifications only prompt Ivy to read the changes; Ivy trusts nothing in them. Without notifications, changes still appear within the polling interval, and every listing is live anyway.

Rate limits and outages

Microsoft and Google limit how fast an app may call them. Ivy retries throttled calls with exponential backoff, honouring their Retry-After up to 60 seconds. When the provider still refuses, or is down, the API answers 503 connector_unavailable with a Retry-After header; try again after that. Background jobs retry on their own.

API

The connected-drives endpoints sit under /api/v1. Below, O stands for /v1/organisations/{organisation_id} and W for O/spaces/{space_id}. Files in a mount use the ordinary file endpoints; their ids look like ext.<mount_id>.<item> (the mount folder itself has an ordinary id), and entries carry a connector object with the provider, the mount, web_url and, for Google documents, native_document and export_formats. Listing a mount returns connector.access (connected, provider_disabled or no_service_access) and items only when it is connected.

Method Path Who
GET O/connectors people in the organisation
PUT O/connectors/{provider} (enabled) organisation admins, step-up
GET O/connectors/{provider}/drives?search= people in the organisation: the selected drives
GET O/connectors/{provider}/drives/{drive_id}/folders?item_id=&cursor= people in the organisation, on a selected drive
GET O/connectors/{provider}/service-drives organisation admins
GET O/connectors/{provider}/service-drives/lookup?address= organisation admins
POST O/connectors/{provider}/service-drives (drive_id) organisation admins, step-up
DELETE O/connectors/{provider}/service-drives/{drive_id} organisation admins
GET W/mounts space members
POST W/mounts (provider, drive_id, item_id, parent_id, name) space admins (people only)
DELETE W/mounts/{mount_id} space admins
GET /v1/connectors/{provider}/callback the browser, at the end of Microsoft admin consent
POST /v1/connectors/{provider}/notifications Microsoft and Google change notifications

{provider} is microsoft or google. Drive kinds are sharepoint_library and shared_drive. lookup finds the document libraries of the SharePoint site, or the shared drive, at address. When admin consent fails, the callback sends the browser back with ?connector_error= set to access_denied, wrong_tenant, invalid_state, provider_disabled or exchange_failed.

Errors

Status Code Meaning
409 connector_provider_disabled Your organisation turned this provider off.
403 connector_no_access The drive isn’t selected under Service access any more; an organisation admin needs to give Ivy access again.
503 connector_unavailable The provider is throttling or down; retry after Retry-After.
409 file_scanning The file is being fetched and scanned; retry after Retry-After.
409 file_too_large_to_scan Too large to serve through Ivy; open details.web_url instead.
412 version_conflict The file changed at the provider; details.current_version_id is the current version.
422 unsupported_by_source The provider can’t do this (details.source, details.operation), or the drive is a OneDrive or My Drive.
409 nested_mount A mount can’t be created inside another mount.
422 mount_location_unavailable The drive or folder doesn’t exist or Ivy can’t reach it.
422 drive_not_selected An organisation admin needs to add this drive under Service access first.
422 invalid_address The address isn’t a SharePoint site address or a shared drive address or ID.
422 service_access_missing Ivy can’t reach the site or shared drive: grant Sites.Selected on the site, or add the service account first.
403 drive_manager_required To select a Google shared drive, you must be one of its Managers.
422 provider_not_available This installation doesn’t offer the provider, or it isn’t turned on.
403 step_up_required Confirm your identity again before turning a provider on or selecting a drive.