![]()
Portal Express, Version 6.0
Operating systems: i5/OS, Linux, Windows
Set limits on searches for users and groups
Searching for users or groups is a time consuming task. A search may time out or return more results than the system can handle or the user may expect. To prevent this behavior, you can set limits on searches for users or groups.
You can limit searches for users or groups in two ways:
- Setting a maximum number of search results
- Setting a timeout for searches in the user repository
These settings can be altered in the following file with the parameters shown below:
- Windows:
portal_server_root/wmm/wmm.xml
- Linux:
portal_server_root/wmm/wmm.xml
- i5/OS: From the UserData directory: portal_server_root_user/wmm.xml
maximumSearchResults="200" searchTimeOut="120000"When running the portal in a network deployment cell, edit the file while following the instructions in this Managing the cluster section 8: Manually editing Member Manager files on a federated node.
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 (for example 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 your search conditions to return fewer results
- Change the Member Manager maximum setting
If your 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.
Parent topic:
Users and groups