Configuring DOM attachments on a network share
This tutorial shows you how to configure a network share as a storage backend for DOM attachments in DocumentHub.
Expected duration: 15 minutes
Prerequisites
- Access to the DocumentHub app on a DataMiner Agent.
- A network share accessible from all DataMiner Agents in the cluster.
- Network credentials with read/write permissions to the share.
- IIS Web Server role installed on DMAs for browser-based file access (optional).
Note
DOM attachments can be stored on a network share without any IIS configuration. The only mandatory requirement is that the network share is reachable by the DataMiner System. The IIS-related steps are optional and only required if you want to visualize or download attachments via a web browser.
Overview
- Step 1: Prepare the network share
- Step 2: Configure the network share in DocumentHub
- Step 3: Configure browser-based access (optional)
- Next steps
Step 1: Prepare the network share
Verify that the network share is accessible from all DataMiner Agents in your cluster.
Example network share location:
\\server\shareEnsure that the share has appropriate read/write permissions configured.
Test connectivity from each DMA by accessing the share via Windows Explorer or command line:
dir \\server\shareNote
If the share is not accessible, verify network connectivity, firewall rules, and share permissions.
Step 2: Configure the network share in DocumentHub
Configure the network share directly in the DocumentHub app:
Open the DocumentHub app in DataMiner.
Navigate to the Settings > DOM page.
Note
This page is only available for users with administrator permissions.
Click Add Source.
Fill in the configuration details:
- Name: A friendly name for this backend (e.g., "DOM Attachments Share").
- Module: The DOM module for which attachments will be stored on the network share.
- Network Share Path: The UNC path of the network share (e.g.,
\\server\share). - Username: The user account with access to the share (e.g.,
domain\user1oruser1). - Password: The password for the user account.
Click Test to verify that DataMiner can access the network share.
Note
If the test fails, verify the following things:
- The UNC path is correct.
- The credentials have read/write permissions.
- The share is accessible from all DMAs.
- There are no firewall rules blocking access.
When the test succeeds, click Save to store the configuration.
The network share backend is now available for use with DOM attachments and document buckets.
Note
DataMiner will store and retrieve attachments directly from this network location. No IIS configuration is required for basic file storage and retrieval through the DocumentHub app.
Step 3: Configure browser-based access (optional)
If you want users to be able to visualize or download attachments via a web browser, follow these additional steps:
Create a local DataMiner user:
In DataMiner Cube, go to System Center > Users / Groups.
Create a local user with credentials matching the network share credentials:
- Username:
user1(matching the share account) - Password: Use the same password as the network share account
Note
This user is required for IIS to impersonate when accessing the network share.
- Username:
Configure IIS permissions on each DMA in the cluster:
On each DMA, open Computer Management (compmgmt.msc).
Navigate to Local Users and Groups > Groups.
Open the IIS_IUSRS group.
Click Add and add the DataMiner user created in the previous step (e.g.,
user1).Click OK to save.
Note
This allows IIS to impersonate the user when accessing the network share.
Create an IIS virtual directory on each DMA:
Ensure the IIS Web Server role is installed on the DMA.
Open IIS Manager (inetmgr).
Expand the server node and navigate to the Default Web Site.
Right-click Default Web Site and select Add Virtual Directory.
Configure the virtual directory:
- Alias:
shareRedirect(or another name of your choice) - Physical path:
\\server\share(the network share UNC path)
- Alias:
Click OK.
Select the newly created virtual directory in IIS Manager.
Double-click Basic Settings in the Actions pane.
Click Connect as... and configure the virtual directory to use the local DataMiner user credentials:
- User name:
user1 - Password: The user's password
- User name:
Click OK to save.
Click Test Settings to verify the configuration.
Use the following URL format to access attachments via a web browser:
https://<dma-hostname>/shareRedirect/<filename>Example:
https://dma.example.com/shareRedirect/document.pdfTip
The DocumentHub app can automatically generate these URLs for DOM attachments when the IIS virtual directory is configured.
Next steps
After configuring the network share backend, you can:
- Create document buckets that use this network share.
- Upload documents to the network share through the DocumentHub app.
- Configure DOM definitions to store attachments on this share.
- Link DOM attachments to jobs, assets, and other business entities.
Tip
For more information on how to work with DataMiner Object Models (DOM), refer to DataMiner Object Models (DOM).