Create an access right for the Search and Replace feature

If you need to limit access to the Search and Replace feature for maps, you must modify the access right.

By default, the action is available to all users. If you want to limit the roles or groups who can use the Search and Replace feature, you must modify the accessrights.xml configuration file.

The method applies to CCMS Web.

With access right Without access right
CCMS Web

The Search and Replace menu option is available from a map's More Options menu.

A dialog provides users with a text field and options to filter the search. The results display in a Search and Replace page.

The Search and Replace menu option is not available from a map's More Options menu.

There is no dialog and there are no results.

  1. Check out and open accessrights.xml.
  2. Modify the method to further restrict it.
    <method name="SearchandReplace" type="front-end">
        <notify enabled="false"/>
        <conditionset operator="any">
          <condition>
            <current>
              <type name="map">
                <statuses>
                  <status>Authoring:*</status>
                </statuses>
              </type>
            </current>
            <users>
              <groups>
                <group name="Everyone"/>
              </groups>
            </users>
          </condition>
        </conditionset>
      </method>
    Important:
    • The method must have the name SearchandReplace, as shown.
    • The method must only specify the Authoring cycle, as shown.
  3. Specify the role and groups you want to access Search and Replace.
  4. Save and check in accessrights.xml.
  5. Refresh the Web Server.