Set limits on searches for users and groups

 

+
Search Tips   |   Advanced Search

 

To prevent search timeouts, we can limit searches for users or groups in two ways:

These settings can be altered by editing...

portal_server_root/wmm/wmm.xml

...and setting...

   maximumSearchResults="200"
   searchTimeOut="120000"

The parameter maximumSearchResults specifies the maximum number of search results. The parameter searchTimeOut specifies the time out in milliseconds.

The example above shows the default values. It returns a maximum number of 200 users or groups and terminates the search if the back end does not respond within two minutes.

These settings affect the user or groups shown in portlets (e.g. the User Manager portlet) and XML export scripts.

If not all search results are returned, you may be using an LDAP server as the user repository, which causes a SizeLimitException to be thrown instead of returning the items. The search result may exceed the maximum defined in wmm.xml; therefore, perform one of the following actions:

  • Refine the search conditions to return fewer results

  • Change the Member Manager maximum setting

If the user repository contains more users or groups than the value configured in maximumSearchResults, a complete export of users and groups with xmlaccess is not possible.