How-to configure User Provisioning desktop application in DocuWare on-premises 7.14

Prev Next

User Provisioning synchronizes users and groups from your on-premises Active Directory (AD) into DocuWare. Instead of maintaining user accounts manually, you set up a synchronization job once. It then transfers user accounts, group memberships, and status changes automatically on a schedule.

The setup has four parts:

  1. App registration in DocuWare Configurations > Integrations > App Registration: You register an app in DocuWare. It creates the credentials that User Provisioning uses to sign in to DocuWare.

  2. Activation in DocuWare Configurations > General > User Provisioning: You enable User Provisioning for your organization. This also gives you the tenant URL and token endpoint URL that the Configurator needs to connect.

  3. User Provisioning Configurator: This standalone application is installed with DocuWare. You enter the credentials, and define which AD to connect to and which groups to synchronize. The result is a JSON configuration file that describes the synchronization job.

  4. Windows Task Scheduler: You create a task that runs the synchronization program (UserProvisioning.exe) with the configuration file at the times you choose.

This article is for DocuWare on-premises 7.14.

Register an app and enable User Provisioning

  1. Go to DocuWare Configurations > Integrations > App Registration.

  2. In the App Registration plugin, select New app registration.

  3. In the Create Application Registration pop-up, choose the option Web application and click Continue.

  1. Enter a name for the app registration.

  2. For Grant Type, select Client Credentials.

  1. From the just created app registration, copy the Application (Client) ID and the Client Secret. Click the Save button.

  2. Switch back to DocuWare Configurations and go to General > User Provisioning. In the User Provisioning plugin, activate Enable User Provisioning.

  3. Copy the User Provisioning tenant URL and the Token endpoint URL.

You now have the four values required to connect User Provisioning to DocuWare:

  • Application (Client) ID

  • Client Secret

  • User Provisioning tenant URL

  • and Token endpoint

Set up the User Provisioning Configurator

The User Provisioning Configurator is a standalone application that stores connection settings for both DocuWare and your Active Directory. It is installed with DocuWare, so you don't need to download it. You can create multiple configurations if you need to synchronize from several directory servers.

  1. Open the folder C:\Program Files (x86)\DocuWare\Power Tools\UserProvisioningConfigurator and start UserProvisioningConfigurator.exe.

  2. Select Create Configuration File.

  1. Select DocuWare On-Premise as the environment and click the Continue button.

  1. Enter the four values you collected in the previous section (Application (Client) ID, Client Secret, User Provisioning tenant URL, Token endpoint URL). Optionally use Test Connection to verify.

  1. Select Add Configuration to start configuring the directory connections.

  1. When you start editing the configuration you will see a tab menu with different settings. By default all options in the General tab are set to true.

  1. Click Connection tab and choose - LDAP or Microsoft Active Directory (MSAD).

    • Add needed information.

    • BaseDN and Groups DN should follow the syntax:

      • Groups DN examples: cn=Admins,dc=example,dc=com or cn=Developers,ou=IT,dc=company,dc=org

      • BaseDN examples: dc=example,dc=com or ou=IT,dc=company,dc=org

  1. Objects and Mappings tabs are pre-filled with required data based on the selected AD type.

  2. Optionally, activate the Create Network ID option on the Domain Information tab - This option is supported only for DocuWare on-premises environment.

  • Provide a Domain name

  • Set a proper NetworkIdAttribute - example: sAMAccountName

  • Note: These attributes will be added only to newly created users. Once they are already provisioned, these attributes won't be updated afterwards.

  1. You can test the configuration clicking on Test Configuration button.

  2. Click on the Groups tab and then on Connect to AD button.

  1. You will see a list of available groups, from which you can select the ones that need to be provisioned.

  1. You can test the configuration once again when the groups are selected.

  1. Once the connection to Active Directory has been successfully established and the Synchronization Preview displays the expected results, close the dialog window and click Save.

  2. The saved configuration will then appear in the Provisioning Connection view. Click Save to apply all changes.

  1. Close the User Provisioning Configurator application. Your configuration is already saved and can be found in the following folder: C:\ProgramData\DocuWare\UserProvisioningConfig

Schedule the synchronization in Windows Task Scheduler

Now create and schedule a Windows task that runs the synchronization program (UserProvisioning.exe) to synchronize users and groups.

  1. Open Windows Task Scheduler and click Create Basic Task.

  1. Follow the steps shown in the wizard. Enter a name for the task.

  1. Choose when the synchronization should be triggered.

  2. Select an Action.

  1. Now select the task you'd like to be executed and the arguments (configurations) which have to be used.

  1. For Program/Script - browse to C:\Program Files (x86)\DocuWare\Power Tools\UserProvisioning and select UserProvisioning.exe.

  2. For Argument write the name of the file copied from the Windows Application (userProvisioning_config_1.json).

  1. Click Finish and wait for synchronization.

  2. Once the synchronization is finished the following information will appear in the User Provisioning Configurator:

  1. If there are failed users or groups the Timestamp field can be edited with previous date so the Synchronization task can run again.

  2. Logs can be found here: C:\ProgramData\DocuWare\Logs\UserProvisioning

Notes:

  • New users created via User Provisioning receive a welcome email with a 3-hour password reset link. Configuring an SMTP server is recommended, as lacking one can negatively impact system performance.

  • Ensure that the user account running the sync has permission to read all relevant user properties in Active Directory, as this is required for proper synchronization.

  • To properly configure SSO using ADFS as the Identity Provider with your DocuWare system, setting userPrincipalName as the mapping attribute for usernames is strongly recommended.

  • Removing a user from the synchronization group does not deactivate the user; it simply removes them from the group. In order for a user to be properly deactivated in DocuWare, their account must be deactivated in Active Directory.

  • A user completely removed from the external directory is not automatically updated in DocuWare. User Provisioning only syncs changes for defined, existing users. If a user is deleted from the external directory, it does not detect the change unless the provisioned group is also modified, for example, by a membership or timestamp reset. In that case, the user is removed from the group in DocuWare but remains active.

The table below explains how user changes in an external directory (such as Active Directory) affect user synchronization in DocuWare via User Provisioning:

Status in the external directory

User Provisioning

DocuWare

User is deactivated

Transfers the status

User is deactivated

User is moved in the external directory

Detects that the user no longer belongs to the synchronizing group

User remains activated

User is removed from directory

Does not transfer a change, unless other group changes or timestamp reset - then user is removed from group

User remains activated

Supported versions: DocuWare on-premises 7.14