# Document management: storage and retention

> Electronic document management: explorer, external storage, retention periods, access log, preview and connectors such as SharePoint or Google Drive.

Adresse : https://www.irpea.com/en/features/integrations-api/document-management
Mis à jour : 2026-09-20
Site : IRPEA ERP (https://www.irpea.com)

Electronic document management: explorer, external storage, retention periods, access log, preview and connectors such as SharePoint or Google Drive.

Electronic Document Management: storage, filing, workflow, connectors (SharePoint, Google Drive, Nextcloud...), versioning and compliance.

Module: [Integrations & API](https://www.irpea.com/en/features/integrations-api)

## Outsourced document storage

Files are no longer kept in the database: they live in a private store (or with your document management connector). Document management displays the REAL content of the storage.

### Good to know

- No document or attachment is stored in the database: the record only holds a reference (storage key, name, size, SHA-256 fingerprint).
- The DMS lists the actual content of the storage (cursor pagination): a file present in the store appears even without metadata, and the « Load more » button browses large volumes.
- Settings → « Backup to your connector »: all documents remain stored by IRPEA; enable copying to your own system (SharePoint, OneDrive, Nextcloud, WebDAV, Dropbox, S3, Scaleway), globally or domain by domain.
- DMS connectors are currently READ-only (folder tree import); as long as none accepts uploads, a file directed to a connector stays on the platform and you are informed of this when sending.
- Migrated modules: DMS, generic attachments (customers, suppliers, contracts, CRM, interactions, tickets, fixed assets), employee file, employee space, internal messaging and electronic signature.
- Deleting an attachment actually deletes the file from storage (no more orphan files that are billed and still readable via their key).
- In local development, no store is configured: the upload is rejected with an explicit message — never a fallback to the database.
- Permanent guard: any write containing an inlined file (data URL or large base64) is rejected by the API with the name of the offending field.

## Document explorer

Complete document management interface with pagination (20 docs/page). List/grid view, filters by category/access/status, full-text search (name, tags, extracted text). Quick actions on hover. Validation of required fields on save.

### Fields

- **Name** : File name (required), auto-filled on upload and editable.
- **Level d'access** : Public, Restricted (by role), Confidential (named users).
- **Status workflow** : Draft → Under review → Approved/Rejected → Archived.
- **Uploaded by** : Name of the signed-in user, filled in automatically.
- **Locking** : Identifies the user who locked the document (real name and ID).

### Good to know

- The + button in the category picker creates a category without leaving the form
- Images and PDFs are previewed in the detail popup
- Locking prevents changes by other users
- Connectors (SharePoint, Google Drive, Nextcloud, S3, OVH, OpenText…) import into the DMS the content of the files of their remote folder
- Multi-select enables bulk actions (with confirmation before deletion)
- Automatic pagination at 20 documents per page, with first / previous / next / last navigation

## Retention periods and access log

The retention periods tab displayed five hard-coded lines (Finance 10 years, HR 5 years…) unrelated to any document: a decorative table in a compliance module suggests a purge that does not exist. Periods now come from the sourced legal rules of the repository and are applied to REAL documents.

### Fields

- **Link a category to a rule** : In the document management settings, each document category is linked to a document type (invoice, payslip, social return, articles of association…). It is this link that gives the legal period and its basis. An unlinked category appears in the “no usable period” block rather than being purged at random.
- **Document-specific retention period** : A document can carry its own retention period, which takes precedence over that of its category — useful for a document whose starting point is particular (end of contract, end of warranty).
- **Access log** : Opening the preview of a document is logged (who, when, which document, from which screen): this is the traceability required by article 32 of the GDPR, and what makes it possible to answer a person asking who has viewed their documents.

### Limits

- A legal retention period cannot be shortened from this screen: changing a category's link changes the rule applied, not the retention obligation that applies to the document.

## Large document preview

The preview window follows the pattern of the accounting preview (“General ledger — preview”): it takes up almost the whole screen and the document is displayed large, instead of the old 280-pixel thumbnail squeezed next to a column of information and a stack of seven buttons.

### Fields

- **Document area** : The PDF or image takes up all the remaining space in the window (nothing is reduced to a thumbnail). A format that cannot be displayed states the reason (“Preview unavailable for this format — download the file”), with the file's icon, type and size.
- **Single-line header** : On the left, the file name (with ★ favourite and 🔒 lock); on the right, on the SAME line, all the actions.
- **“Action” button** : Secondary actions are grouped in the context menu: favourite, lock/unlock, duplicate, submit for review (draft), archive, open the original in a tab.
- **« Details » panel** : Collapsed by default to leave the document large: tags, description, lock, ERP link, extracted text, version history and source connector.

### Good to know

- No action has been lost: those that are no longer buttons are in the « Action » menu
- The document always opens via a signed same-origin link — never via its inlined content
- The window closes with the cross or by clicking on the overlay

## Connectors and ERP integration

14 real DMS connectors: SharePoint, OneDrive, Google Drive, Nextcloud, Alfresco, Nuxeo, OpenText, Dropbox, Box Enterprise, AWS S3 (and compatibles), Scaleway, OVH Object Storage, WebDAV and SFTP server; each one tests its authentication and access to the configured folder, imports the content of that folder's files into the DMS, and eight of them (SharePoint, OneDrive, Nextcloud, WebDAV, Dropbox, S3, Scaleway, SFTP) also receive a copy of IRPEA documents (29/09/2026, SFTP on 30/09/2026).

### Steps

1. Connectors tab → “+ Add a connector”
2. Choose the provider from the catalogue (14 available)
3. Fill in the credentials and, if needed, the remote folder
4. Click “Test connection”: real call to the remote server, folder included
5. Save: secret fields are encrypted by the server
6. “⟳ Synchronise” imports the remote folder's files into the DMS
7. “↑ Send” copies DMS documents to the connector

### Fields

- **Authentication** : A single mode per provider, the one actually used: Azure AD application (client_credentials) for Microsoft, service account for Google, Client Credentials Grant for Box, refresh token or access token for Dropbox, access key + secret key (AWS V4 signature) for S3 and Scaleway, Keystone v3 for OVH, password or SSH private key (OpenSSH or PEM, optional passphrase) for SFTP, user + password for the others.
- **SFTP host key** : The SFTP server is recognised by the SHA-256 fingerprint of its host key (“SHA256:…” format of ssh-keygen -lf). You can type it in; left empty, the test reads the server key WITHOUT sending any credential and displays it, you compare it with the one given by the administrator then click “Fingerprint checked: pin it and test”. From then on, test, synchronisation, import and copy refuse any different key (substituted server or interception).
- **Secret credentials** : Client secret, password, tokens, JSON key, SSH private key and its passphrase: encrypted by the server when saved, never kept in clear text nor displayed again (only a ••••1234 hint is); a connector saved before 29/09/2026 is encrypted automatically when the tab is opened.
- **Remote folder** : Set in the credentials: SharePoint library folder, OneDrive or Nextcloud folder, Alfresco site, Nuxeo path, OpenText node, Dropbox or Box folder, S3 prefix, Google Drive folder ID, SFTP root folder (absolute or relative to the home folder, subfolders included); the WebDAV URL points directly to the folder.
- **Connection test** : Real server-side call: authentication THEN access to the configured folder; the provider's error message is shown as is, never presented as a success.
- **Sync** : Lists the remote folder (1,000 files at most, following the provider's pagination) then imports the CONTENT of new or modified files into IRPEA storage, 200 per run: same checks as an upload (size, type, active content refused, plan quota); a file modified remotely becomes a new version, the previous one stays in the history.
- **Send** : Copies the ticked DMS documents to the connector (providers that receive a copy), with a result for each document; for SFTP, the file is written under a temporary name then renamed, missing folders are created.
- **Upload copy** : Settings → “Backup to your connector”: every new uploaded document is copied automatically to the chosen connector; the connector card shows whether this copy is active.

### Good to know

- SharePoint: enter the site URL (https://…sharepoint.com/sites/ERP) or its ID; empty = root site
- OneDrive: with application access, identify the OneDrive by its owner's address or its Drive ID
- Google Drive: paste the service account JSON key (not the client_secret file of an OAuth client) and share the folder with its client_email; Google Docs, Sheets and Slides are imported as PDF or XLSX; to archive the DMS in Google Drive through Google authorisation, use Integrations → Google Drive
- Dropbox: prefer a refresh token with the App Key and App Secret, an access token expires after 4 hours
- OVH: user in “project:user” format, the storage endpoint is read from the region's Keystone catalogue
- SFTP: public host only (internal addresses are refused), ports 22, 222, 2022, 2222, 8022 or 22222; symbolic links are not followed

### Limits

- Changing a connector's server address requires re-entering its secrets: a password cannot be redirected to another server; for SFTP, so does changing the host, the port or the host key fingerprint
- SFTP host key changed: the connection is refused before any credential is sent; if the server really was reinstalled, clear the fingerprint, run the test again and check the new one
- Without a server encryption key (INTEGRATIONS_SECRET_KEY or SESSION_SECRET), no secret can be saved
- Copy to SharePoint/OneDrive limited to 4 MB per file

## Frequently asked questions

### Where do I find « DMS Hub » in IRPEA?

In the ERP, the « System » menu, « DMS Hub » entry, 5 features are described on this page, as the in-app help centre presents them.

### Which plan do I need to access it?

The screen is included in the Starter (€20 per user per month), Growth (€40 per user per month) and Enterprise (€100 per user per month) plans, and the free 30-day demo opens every feature.
