Use > JMX Reference > Administration Methods > How to Change the Priority of a User Repository

How to Change the Priority of a User Repository

In hybrid user management you have multiple user repositories, each user repository has a priority value. When a user repository has the highest priority value, the authentication mechanism will always select that user repository first. You can invoke the JMX method getUserRepositories to check the priority values for your existing user repositories.

Therefore, when performing hybrid user management with multiple user repositories, you may want to change the priority of an existing user repository to make sure the authentication mechanism will select that repository first.

To do so,

  1. On the UCMDB server, launch the Web browser and enter the following address: https://localhost:8443/jmx-console

    You may have to log in with a user name (default: sysadmin) and password.

  2. Locate UCMDB:service=LDAP Services and click the link to jump to the Operations table.

  3. Locate the getUserRepositories operation, and click Invoke to get the priority values for the existing user repositories.

  4. Go back to the UCMDB:service=LDAP Services Operations table, and locate the changeUCMDBUserRepositoryPriority operation.

  5. In the Value field for the user repository of your choice, specify a value between 1 and 10 (1 highest, 10 lowest).
  6. Click Invoke.

  7. Restart the UCMDB server.

Note The only exception is when the user is a server administrator. sysadmin and UISysadmin will always go first on the UCMDB user repository regardless of its priority. This is designed to avoid locking the user out of the system in case say, LDAP is not properly configured and it is set with a higher priority than UCMDB.

If you have a sysadmin user in UCMDB and a sysadmin user in repository, the authentication mechanism will always go on the UCMDB user repository first. Except the case that you implicitly set the repository (logging in with username: