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
-
Log in to your ServiceNow instance.
-
Navigate to User Administration > Roles.
-
Select New and provide an appropriate name, such as Password Change Role.
-
Save the role.
Granting Field-Level Permissions
-
Navigate to System Security > Access Control (ACL).
-
Locate the ACL for the
sys_user.user_passwordfield. -
Grant read and write permissions to the custom role.
-
Save the changes.
Assigning the Role to a User
-
Navigate to User Administration > Users.
-
Select the user that will perform password changes.
-
Add the custom role in the Roles related list.
-
Save the user record.
Creating a ServiceNow Secret in secret-server
-
Log into secret-server.
-
Downloading and Installing a Distributed Engine onto a site (Default for this procedure).
-
Navigate to All Secrets.
-
Select Create Secret.
-
Choose the ServiceNow Account template.
-
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
-
-
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
-
Open the ServiceNow secret.
-
Select the Remote Password Changing tab.
-
In the RPC / Autochange section, select Edit.
-
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.
-
-
Select No secret selected.
-
Choose the privileged ServiceNow account secret.
-
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.