Remote Password Changing (RPC) for ServiceNow in secret-server

Remote Password Changing (RPC) enables Secret Server to automatically rotate a ServiceNow account password when a secret expires, either immediately or on a defined schedule. Password complexity and other options are fully configurable. See the Password Changer List for a complete list of available password changers.

Prerequisites

Before you begin, ensure the following requirements are met:

  • Access to a ServiceNow instance

  • A ServiceNow user account with administrative or equivalent permissions

  • A secret-server user account with permission to create and manage secrets

  • Remote Password Changing and Heartbeat monitoring enabled in secret-server

  • A Distributed Engine configured for RPC (version 8.4.32.0 or later)

ServiceNow Permissions and Role Requirements

The ServiceNow account used for RPC must have permission to read and write the sys_user.user_password field. This can be achieved in one of the following ways:

  • Assigning the standard admin role

  • Creating and assigning a custom role with the required field permissions

It is recommended to use a dedicated privileged ServiceNow account for RPC operations and store it as a secret in Secret Server.

Configuration

Creating a Custom Role

  1. Log in to your ServiceNow instance.

  2. Navigate to User Administration > Roles.

  3. Select New and provide an appropriate name, such as Password Change Role.

  4. Save the role.

Granting Field-Level Permissions

  1. Navigate to System Security > Access Control (ACL).

  2. Locate the ACL for the sys_user.user_password field.

  3. Grant read and write permissions to the custom role.

  4. Save the changes.

Assigning the Role to a User

  1. Navigate to User Administration > Users.

  2. Select the user that will perform password changes.

  3. Add the custom role in the Roles related list.

  4. Save the user record.

Creating a ServiceNow Secret in secret-server

  1. Log into secret-server.

  2. Downloading and Installing a Distributed Engine onto a site (Default for this procedure).

  3. Navigate to All Secrets.

  4. Select Create Secret.

  5. Choose the ServiceNow Account template.

  6. Complete the required fields:

    • Secret Name: A descriptive name for the secret

    • Username: ServiceNow account username

    • Password: ServiceNow account password

    • Domain: ServiceNow instance domain (for example, yourinstance.service-now.com)

    • Site: Select the site associated with your Distributed Engine

  7. Select Create Secret.

After creation, the secret's Last Heartbeat Status displays Pending until the Distributed Engine runs a heartbeat. Once complete, the status updates to Success or Failure.

If the heartbeat fails, review Settings > Heartbeat Log to determine the cause.

Remote Password Changing (RPC)

Enable RPC for the ServiceNow Secret

  1. Open the ServiceNow secret.

  2. Select the Remote Password Changing tab.

  3. In the RPC / Autochange section, select Edit.

  4. Enable Change password using privileged account credentials.

    • If the secret password is valid, the account can change its own password.

    • If the password is invalid, a privileged ServiceNow account is required.

  5. Select No secret selected.

  6. Choose the privileged ServiceNow account secret.

  7. Select Save.

The heartbeat status resets to Pending until the RPC completes. To run the password change immediately, navigate to Settings > Password Change Log and select Run RPC Now.

Detailed error information is available in the Heartbeat Log and Password Change Log.