> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apostra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect a source

> Bring selected Google Drive, Microsoft 365, or Confluence Cloud content into your Library with a read-only, one-way connection.

A connected source is a read-only, one-way import into your Library. You sign
in to a provider, choose one folder, space or page tree, and Apostra keeps
workspace-managed copies of the supported content inside it. It never writes,
moves, renames, or deletes anything at Google, Microsoft, or Atlassian. Each
copy keeps its provider provenance, so you can see where it came from.

For what the Library holds, see [What the Library is](https://docs.apostra.com/v3/seller-library-overview.md).
For how a document moves through Processing, Draft, Live, and Archived, and what
happens to a copy when a source loses its file, see
[Library upkeep](https://docs.apostra.com/v3/seller-library.md).

## Availability

Connected sources roll out to accounts one at a time. The workflow appears only
for an account it is enabled for, and only to a seller administrator. For any
other account no provider is offered and no connection action can run. When it
is enabled, the account's rollout also names which of the three providers it
can connect.

## Start a connection

A seller administrator opens the Library (`open_page` with `page: "library"`) or
the Integrations page (`open_page` with `page: "integrations"`) and selects a
provider. Apostra opens the provider's sign-in in a secure browser handoff.
Return to the Library after the provider confirms the sign-in; Apostra verifies
that handoff before it lets you choose a root. Signing in alone does not create a
source connection or import any content.

When you complete sign-in, Apostra records the provider account's display email
or name and the Apostra administrator who completed the handoff. It stores
neither the OAuth access token nor other profile information. The Library groups
connected folders under that provider account, so another seller administrator
can see them and whether they can manage the account.

After you choose a root, Apostra shows a bounded preview of the supported and
excluded content it can see. Review the root and preview, then select **Start
indexing** to create the connection and request its first index. A preview is
not a connection, and it expires if you leave setup unfinished.

Choose the narrowest root that contains the material you want to use. To manage
a connection once it exists (pause, resume, sync now, reconnect, disconnect), see
[Manage a connected source](https://docs.apostra.com/v3/seller-library-overview.md#manage-a-connected-source).

## Choose a provider and root

* **Google Drive**: choose a folder in My Drive, a folder shared directly with
  the connected account, or a folder in a Shared Drive. Apostra traverses that
  folder and its descendants. It reads folders and downloadable files, and
  exports Google Docs and Google Drawings as PDF and Google Slides as PowerPoint.
* **Microsoft 365**: choose a folder in OneDrive for Business or a folder in a
  SharePoint Online document library. Personal Microsoft accounts are not
  supported. The picker lists **OneDrive (yours)** and **SharePoint sites (your
  company)** separately, and you can search both by name. If your Microsoft 365
  administrator has not approved SharePoint access, OneDrive stays available.
* **Confluence Cloud**: choose a space or a page subtree in one Confluence Cloud
  site. Apostra reads current pages in that boundary and supported attachments on
  those pages. A page-tree root includes the chosen page and its descendants.

## Permissions requested

The connection asks only for read authority. None of the scopes grants write
access. The provider's read grant can be broader than the root you choose;
Apostra imports only that root and its descendants.

| Provider | Scopes | What they do |
| - | - | - |
| Google Drive | `drive.readonly` | View and download Drive content the connected Google account can access. |
| Microsoft 365 | `Sites.Read.All`, `User.Read`, with `openid`, `profile`, `email` and `offline_access` | Read SharePoint and OneDrive for Business content the signed-in work account can access, and identify that account. |
| Confluence Cloud | `read:space:confluence`, `read:page:confluence`, `read:hierarchical-content:confluence`, `read:attachment:confluence`, `read:content-details:confluence`, with `read:me` and `offline_access` | Read spaces, page trees, attachments and their content details, and identify the Atlassian account. |

If the Microsoft picker cannot see your company's SharePoint sites, ask your
Microsoft 365 administrator to approve the `Sites.Read.All` delegated access for
the connection, then reconnect. Sites cannot be shown or imported until that
approval and the account's own SharePoint access both exist.

## Where imported content goes

Each eligible file is checked against the destination policy for the source.

* PDF, PowerPoint (`.pptx`) and Excel (`.xlsx`) files can become Library
  **Material**. Microsoft 365 Word documents (`.docx`) are converted to PDF
  first; legacy Word (`.doc`) files are not supported.
* JPEG and PNG images can become advertiser-scoped **Creative Assets** when that
  destination is allowed and the source has advertiser authority.
* Confluence pages become Library **Material** from their cleaned storage-format
  text. The Material keeps the page title, page version and Confluence link as
  provenance. When you edit the page, Apostra adds a revision to that same
  Material. A page whose normalized content is over 10 MB, or that cannot be
  read, is quarantined and not imported.
* Other file types are not imported to either destination.

An item that is unsupported, too large, unreadable, or outside its destination
policy is skipped; it does not create a partial destination copy.

These limits apply by default:

* One item is at most 100 MB.
* A sync pass reads at most 100 items and 250 MB for one connection. A pass
  shares its budget across customers, with at most two connections, 200 items
  and 500 MB for any one customer.
* A Google-native export (Docs, Slides, Drawings) is at most 10 MB.
* Google Drive scans at most 256 folders and 64 levels below the selected
  folder. Microsoft folder ancestry is bounded to 64 levels.

## Sync timing and changes

Apostra checks due connected sources every minute. It uses the provider's change
cursor between full checks and runs a full reconciliation at least every 24
hours.

* **Rename or move inside the selected root:** Apostra keeps tracking the same
  provider item and refreshes its source observation and provenance.
* **Delete at the provider, move outside the selected root, permission loss,
  expired credentials, or disconnect:** the imported copy is archived and then
  deleted 30 days later. A permission loss or expired credential also stops sync
  and asks you to reconnect. The file at the provider is never touched. The
  timing, the reasons shown, and how a returning file restores the copy are in
  [When a connected source loses a file](https://docs.apostra.com/v3/seller-library.md#when-a-connected-source-loses-a-file).
* **Reconnect or choose a new root** when the provider account, its access or the
  source boundary changes.

Disconnecting a Google Drive Library source does not disconnect the separate
Google Drive file-picker connection that shares the same provider account.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.