Larger sites can have an enormous number of groups, for example, one PaperCut site has over 250,000 groups! When there are so many groups, the PaperCut window for choosing which groups to add to PaperCut can take a very long time to retrieve the information from the Active Directory and can actually time out. This can make selecting groups to add to PaperCut using the application web interface slow or unusable.
To work around this problem, there are two configuration options.
If you are using Active Directory, you can set the config key
user-source.ad.group-ou-filter to only display groups under a certain Organizational Unit. You can change the value of a config key via
Options → Config Editor. Information on how to use a config editor is given here. PaperCut expects the Organizational Unit name in a particular format as follows:
Few examples are listed below:
yourdomain.com/Import OU/Sub Import OU yourdomain.com/Users
To work around this problem, there is a configuration setting that can be made where one can manually list the set of groups. Once this configuration is set, PaperCut will no longer query Active Directory, LDAP, etc. to retrieve the list of groups but will rather use the list specified in the configuration settings to populate the Available Groups window.
To enable this work-around do the following:
- Login to the system as an administrator (e.g. the built-in admin account).
- Navigate to the Options section.
- Click on the “Config editor (advanced)” link in the Actions list on the left.
- In the quick find, enter part of the config key, “override”, and press GO.
- Locate the required key, “user-source.group-list-override” and enter a new value for the list of groups. The list of groups can be comma separated (
,) or pipe (
|) separated. e.g.
Group0001,Group0002,Group0003. See below for formatting required to add Org Units or for adding a “group-list-override” greater than one thousand characters.
- Press the Update button to the right to apply the change.
Now you can test this setting out:
- Navigate to the Groups section.
- Click on the “Add/Remove Groups” link in the Actions list on the left.
The available list of Groups should now have your list from above: e.g.
You will also notice a warning message at the top of the page that reminds you that this option is
currently enforced: “The list of group names is not sourced from the operating system, but from the config key ‘user-source.group-list-override’.”
Important: If you have groups already entered in the interface, make sure they appear in your list. This key overrides/replaces any of your existing groups settings.
AD Organizational Unit Name Format
When entering a “group” override list, you may also use Active Directory Org Units. PaperCut expects the Org Unit names in a particular format as follows:
The name must be prefixed with the with OU: which indicates to PaperCut that this is an AD Org Unit and not a normal group. Some examples include:
OU:yourdomain.com/Users OU:anotherdomain.com/Staff OU:domain.com/DivisionA/Staff
Group List Override Greater Than 1000 Characters
To create a list of groups larger than the maximum configuration key size of 1,000 characters, additional configuration keys can be added for the “user-source.group-list-override”. Each new key created in the format below can store an additional one thousand characters.
Key / Value Pair
user-source.group-list-override.1 / e.g. Group0001,…,Group0099
user-source.group-list-override.2 / e.g. Group0100,…,Group0199
user-source.group-list-override.X / e.g. GroupXXXX,...,GroupXXXX
To add one or more of these new configuration keys do the following:
- Open the
Config editor (advanced)
- Enter the name of the key in the
Namefield (See above for syntax for new group-list-override keys)
- Enter up to 1,000 characters in the
Keywords: timeout, time out, browser, large AD, large groups, many groups, delays, hundreds, thousands, container, org unit, containers, LDAP