User Provisioning application synchronizes users and groups from an on-premises Active Directory into DocuWare. You connect your directory to DocuWare once. After that, new accounts, group memberships, and status changes are transferred on a schedule, and you no longer maintain the accounts in DocuWare by hand.
Setting it up takes four parts. You register an application in DocuWare Configurations > Integrations > App Registration, and select the provisioning source in DocuWare Configurations > General > User Provisioning. Then you connect your directory to the User Provisioning Configurator, a desktop application installed with DocuWare. Finally, you schedule the synchronization in the Windows Task Scheduler.
This article is for administrators of DocuWare on-premises 7.15 and later. To synchronize from a cloud identity provider instead, see Configure Cloud Identity Provider with On-Premises DocuWare 7.15.
For 7.14, see How to configure the User Provisioning desktop application in DocuWare on-premises 7.14.
For 7.12 and 7.13, see Information for User Provisioning with DocuWare on-premises 7.12 or 7.13.
Prerequisites
To synchronize users from an on-premises Active Directory, the following prerequisites must be met:
The account that runs the synchronization can read all user properties you want to synchronize in Active Directory.
An SMTP server is configured in DocuWare, if new users should receive a registration email.
Tip: Configure the SMTP server before the first synchronization
New users receive a registration email with a password reset link that is valid for 3 hours. Without an SMTP server, DocuWare cannot send it, and the performance of the system can suffer.
Registering the User Provisioning application
In this part, you create an application registration in DocuWare. It lets the User Provisioning Configurator log in to DocuWare. At the end of the part, you have the four values the Configurator needs.
Go to DocuWare Configurations > Integrations > App Registration and select New app registration.
In the Create Application Registration dialog, select Web application and click Continue.

Enter a name for the application.
Under Access, select the grant type Client Credentials and click Save.

Copy the Application (Client) ID and the client secret. DocuWare generates the secret when you save the application registration, and shows it once. Store it in a safe place.
Go to DocuWare Configurations > General > User Provisioning and turn on Enable User Provisioning.
Under Identity Provider, select the provisioning source On-premises identity provider.
Copy the Tenant URL and the Token Endpoint.

You now have the four values that the Configurator needs: the Application (Client) ID, the client secret, the Tenant URL and the Token Endpoint.
Connecting the Configurator to DocuWare
The User Provisioning Configurator is a desktop application. One configuration file holds the connection to DocuWare and one or more directory configurations.
Open
UserProvisioningConfigurator.exe, which is the setup tool for User Provisioning. You can find it inC:\Program Files (x86)\DocuWare\Power Tools\UserProvisioningConfigurator.Click Create Configuration File.
In the Select DocuWare environment dialog, select DocuWare On-Premise and click Continue.

Under Provisioning connection, enter the four values from the previous part:
App registration client id
App registration client secret
User Provisioning tenant URL
Token endpoint URL

Click Test Connection. The DocuWare connection test dialog reports whether the Configurator reached the User Provisioning Service. Close the dialog.

Configuring the connection to Active Directory
A configuration describes one directory: which server to read, which objects to synchronize, and which groups to provision. Create one configuration for each directory server.
Click Add Configuration.

Optional: Click the pencil next to New configuration to rename the configuration.
In the General tab, check the general settings. Active includes this configuration in the synchronization. Create Document Tray gives every new user a document tray, and Send Registration Email sends them a registration email.

In the Connection tab, select the AD Type, LDAP or MSAD. Then enter the server address, the port, and the user name and password of the account that reads the directory. In Base DN, enter the part of the directory to read.
The base DN follows the LDAP syntax, for example
DC=example,DC=comorOU=IT,DC=company,DC=org.
The Objects and Mappings tabs are already filled in for the directory type you selected. Change them only if your directory uses other attributes.
Optional: To give new users a network ID, turn on Create Network ID in the Domain Information tab. Enter the domain name, and set the attribute to read it from, for example
sAMAccountName.Information: The network ID is set only for new users
DocuWare writes these attributes when it creates a user. It does not update them for users that already exist. The option works for DocuWare on-premises only.
In the Groups tab, click Connect to AD.

Under Group Selection, select the groups you want to provision. They move from Available Groups to Selected for Provisioning. Use the search field to find a group, or Select All to take all of them.

Click Test Configuration.

In the Active Directory connection test dialog, check the Connection Verification and the Synchronization Preview. The preview shows how many users and groups the configuration finds. Close the dialog.

Click Apply to keep the configuration.
Go back to Provisioning connection and click Save. The configuration file is saved in
C:\ProgramData\DocuWare\UserProvisioningConfig.
Information: One configuration for each directory
To read several servers or directories, add a configuration for each one. They all run from the same configuration file.
To run the synchronization once, straight from the Configurator, click Run. To run it on a schedule, set up a Windows task as described in the next part.
Scheduling the synchronization
The synchronization runs as a Windows task that calls UserProvisioning.exe with your configuration file. The UserProvisioning.exe is in the DocuWare installation folder and transfers the users to DocuWare.
In the Configuration Files list, click the copy icon next to your configuration file. This copies its name, which you need as the argument of the task.

Open the Windows Task Scheduler and click Create Basic Task.

Enter a name for the task and click Next.

Choose how often the synchronization runs, for example Daily, and click Next. Then set the start date and time.

As the action, select Start a program and click Next.

In Program/script, click Browse and select
UserProvisioning.exeinC:\Program Files (x86)\DocuWare\Power Tools\UserProvisioning.
In Add arguments, paste the name of your configuration file, for example
userProvisioning_config_1.json. This is the file you had as output after running theUserProvisioningConfigurator.exe. Then click Next.
Check the summary and click Finish.
After the first run, the General tab of the configuration shows the Synchronization result: when it last ran, and how many users and groups were synchronized successfully or failed.

To synchronize users and groups again that failed, set Last synchronized to an earlier date and let the task run again.
The logs are in C:\ProgramData\DocuWare\Logs\UserProvisioning.
Effects of directory changes on DocuWare users
User Provisioning transfers changes from your directory to DocuWare. Not every change in the directory has an effect in DocuWare.
Important: Deactivate a user in Active Directory
Removing a user from a provisioned group does not deactivate the user in DocuWare. It only removes the user from the group. To deactivate a user in DocuWare, deactivate the account in Active Directory.
The following table shows how changes in an external directory, such as Active Directory, affect the users in DocuWare:
Change in the external directory | What User Provisioning does | Result in DocuWare |
|---|---|---|
The user is deactivated | Transfers the status | The user is deactivated |
The user is moved out of a provisioned group | Detects that the user no longer belongs to the group | The user stays active |
The user is deleted from the directory | Transfers nothing, unless the group changes or you reset the timestamp. Then it removes the user from the group. | The user stays active |
Information: Deleted users are not detected
User Provisioning synchronizes the users it knows. When you delete a user from the directory, it does not see the change on its own. It sees it only when the provisioned group changes too, for example through a membership change or a reset of Last synchronized. DocuWare then removes the user from the group, but the user stays active.
Tip: Use userPrincipalName for single sign-on with ADFS
If you use single sign-on with ADFS as the identity provider, map the user name to userPrincipalName.