Data Source Connectors
This page describes the connection form of the Amazon S3, Google Drive and SharePoint connectors of Data Sources. The steps to create a source, test the connection and save it are the same for every connector: see Connecting to WebDAV.
Who can use it
Creating and editing sources needs the Manage import sources permission. View import sources shows sources and their runs without changing them.
Connecting to S3

Before you start
You will need an IAM user (or role) with read-only access to the bucket. The minimum policy is:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["s3:GetObject", "s3:ListBucket"],
"Resource": [
"arn:aws:s3:::your-bucket-name",
"arn:aws:s3:::your-bucket-name/*"
]
}
]
}
Replace your-bucket-name with the actual bucket name. Do not grant write permissions - Freedam never needs them.
Connection form
| Field | Notes |
|---|---|
| Bucket | Exact bucket name, e.g. acme-dam-assets |
| Region | AWS region, e.g. eu-west-1 |
| Access key | IAM access key ID |
| Secret key | IAM secret key - stored encrypted, never logged |
| Endpoint | Leave blank for AWS. For S3-compatible servers, enter the full endpoint URL (e.g. https://s3.wasabisys.com for Wasabi or https://minio.yourcompany.com:9000 for MinIO). |
| Base path | Optional. Restrict ingestion to a specific prefix inside the bucket, e.g. products/2026/. Leave blank to pull the entire bucket. |
| Path-style endpoint | Turn on for servers that need path-style URLs. Required for MinIO. |
Click Test connection to verify bucket access before saving.
Connecting to Google Drive
Note: Freedam does not connect to your Google account itself. You generate a short-lived OAuth access token in Google's OAuth 2.0 Playground and paste it into the connection form.
Getting an access token
- Open the OAuth 2.0 Playground in your browser.
- In Step 1, enter the scope
https://www.googleapis.com/auth/drive.readonlyand click Authorize APIs. - Sign in with the Google account that has access to the target folder. For a folder in a shared drive, the account needs access to that folder, either as a member of the shared drive or through the folder's sharing settings.
- In Step 2, click Exchange authorization code for tokens.
- Copy the Access token value.
Paste it into the OAuth access token field in the Freedam connection form.
Warning: Google access tokens expire after about 1 hour, and the playground gives you no refresh token, so Freedam cannot renew it for you. For that reason Google Drive sources are manual only, on every plan: the Refresh frequency field is replaced by a note for them, and you trigger each refresh with Refresh now. Once the token has expired, a refresh fails with
auth_failed, shown on the run page and as the source's last-run status. Freedam emails the users who manage data sources when the run fails (see Recovering from auth_failed). The source is not switched off: paste a fresh token into the connection form, save, and refresh again.

Connection form
| Field | Notes |
|---|---|
| OAuth access token | The OAuth access token you generated above |
| Root folder ID | Optional. The Google Drive folder ID from the folder's URL: https://drive.google.com/drive/folders/<folder-id>. The folder can be in My Drive or in a shared drive; the ID of a shared drive itself also works. Leave blank to start at the My Drive root: the folder browser then lists your My Drive folders followed by the shared drives the account is a member of. |
Connecting to SharePoint
A SharePoint source reads one document library through a Microsoft work or school account that an administrator connects once. Freedam keeps the account signed in on its own, so SharePoint sources can run on a schedule like WebDAV and S3 sources.
Before you start
- A Microsoft 365 work or school account that can open the library. The source sees exactly what this account sees.
- A Microsoft 365 administrator of your organization makes the first connection. Microsoft asks them to allow Freedam to read files and the sites the account can access; they tick Consent on behalf of your organization and accept. After that, any account in your organization can be connected. Until an administrator has approved Freedam, Microsoft refuses the sign-in for other users with a message saying an administrator must approve the app.
- On a self-hosted installation, the server administrator registers the Microsoft app first. Until then, Connect an account answers that the service is not set up on this server.
Step 1 - Connect a Microsoft account
- On the create page, name the source and pick SharePoint.
- Click Connect an account. Freedam sends you to Microsoft's sign-in page.
- Sign in and accept the permissions. Microsoft sends you back to the create page with the account selected and the name you typed kept.

The account belongs to the workspace, not to you: every administrator of data sources can pick it for other sources, and several sources can share it. Connect another account adds a second one.
Step 2 - Choose the site and the document library
- Under Site, search by site name, or paste a link to the site, a library or a folder in it. With an empty search, the list shows OneDrive (the connected account's own files) first, then the sites the account can open.
- Click the site, then pick the Document library.
- Click Test connection to list the folders at the root of the library, then Create source.
Folders and the catalog file are chosen on the source's Edit page, as for the other connectors, with the folder browser.
Note: Freedam identifies folders and files by their SharePoint ids, not their paths. Renaming or moving a folder inside the library does not break the source. Choosing another library on the Edit page does: choose the folders and the catalog file again after saving.
When the account has to be connected again
Microsoft stops accepting the account's sign-in when its password is reset, when it is disabled, when the permissions are withdrawn, or after 90 days without any run. Freedam then marks the account Needs reconnection, and runs fail with a message saying so. Freedam emails the users who manage data sources when a run fails.
The source page shows a warning with a Reconnect button. Sign in again with the same Microsoft account: every source that uses it works again, with no setting to change.
Connection form
| Field | Notes |
|---|---|
| Microsoft account | The connected account the source reads through |
| Site | The SharePoint site, or OneDrive for the account's own files |
| Document library | The library inside the site. One source reads one library; create one source per library. |