---
sourceDocument: Brazil ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/servicenow-platform

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Password Reset script includes

# Password Reset script includes {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Password Reset Script Includes

The Password Reset plugin in ServiceNow installs various script includes that support and extend password reset processes.
These script includes provide customizable extension points, allowing you to tailor the password reset functionality to your organization's requirements.
Show full answer Show less  

## Key Script Include Categories and Their Functions

* **Enrollment Check**: These scripts determine if a user is enrolled for password reset verification, returning a boolean based on parameters such as user ID and verification ID. Examples include checks for security questions and SMS verification enrollment.
* **Identification Form Processor**: These scripts extend user identification logic during password reset by processing form requests (e.g., verifying users by email or username) and returning the user sysid if identified.
* **Enrollment Form Processor**: These handle enrollment form submissions, processing user enrollment into verification methods. They return success status and support passing detailed result messages back to the user interface.
* **User Account Lookup**: These scripts map a user sysid to their credential store account ID, typically using the username as the account identifier.
* **Password Generator**: These generate new passwords automatically, usually based on predefined patterns like random words plus digits, to support secure password resets.
* **Verification Processor**: After user identity verification, these scripts confirm verification success by processing form inputs and returning a true/false result. They support multiple verification methods, including personal data confirmation, security questions, and SMS.
* **Post Processor**: These scripts execute custom actions after the completion of the password reset workflow, handling both success and failure outcomes.

## Practical Benefits for ServiceNow Customers

* **Customizable Password Reset Flows:** By leveraging these script includes and their extension points, you can create tailored password reset experiences that meet your organization's security policies and user needs.
* **Extensible Verification and Enrollment:** Easily add or modify verification methods (e.g., SMS, security questions) and enrollment checks to enhance security and user convenience.
* **Improved User Identification:** Identification processors allow flexible user lookup based on different input types, improving the accuracy and efficiency of password reset requests.
* **Automated Password Generation:** Built-in password generator scripts ensure new passwords meet defined complexity standards automatically.
* **Workflow Integration:** Post-processing scripts enable integration with other systems or custom logic triggered after password reset completion.

## Implementation Notes

Each script include accepts specific parameters like user sysid, verification IDs, and form request objects, enabling you to build logic that interacts seamlessly with the password reset process tables and workflows. Use session properties to communicate enrollment results and messages back to the UI.  
The Password Reset plugin installs
script includes that implement password reset processes. To enable you to extend functionality,
each base-system script include
provides extension points that you can use to invoke "extension scripts" that you customized.

The [extension script
category](https://servicenow-prod.fluidtopics.net/W3sqCNmJTJQ6g5YAy~G3oQ "You can use a custom extension script to extend Password Reset functionality for credential store, verification, or identification types.") refers to the specific types of behavior for an extension script (for
example, credential store, verification, identification type, or as a post-processor).

## 'Enrollment check' script includes {#c_InstalledPasswordResetScripts__section_mm2_yty_f1b}

All enrollment check script includes take the following parameters and return a boolean indicating whether the user is enrolled for Password Reset.

* params.userId: The sys_id of the user being checked (table: \[sys_user\]).
* params.verificationId: The sys_id of the verification being checked (table: \[pwd_verification\]).
{#c_InstalledPasswordResetScripts__ul_ogq_nbh_dq}
{#c_InstalledPasswordResetScripts__table_spl_tbh_dq__entry__2}

| Name | Description |
|-|-|
| PwdAlwaysEnrolled | Default check of whether a user is enrolled that always returns true. |
| PwdMockIsEnrolled | Default check of whether a user is enrolled that always returns true. |
| PwdQuestionsEnrollmentCheck | Determines whether a user has enrolled for Password Reset using security question verification. |
| PwdSMSEnrollmentCheck | Determines whether a user has enrolled for Password Reset using SMS verification. |
[ ]

{#c_InstalledPasswordResetScripts__table_spl_tbh_dq}

## 'Identification form processor' script includes {#c_InstalledPasswordResetScripts__section_lbf_yty_f1b}

Identification form processor script includes provide functionality for extending
identification processing.  
All identification form processor script includes take the following parameters, and return the sys_id of the user that corresponds to the requested input. If the user was not identified, it returns null.

* params.processId: The sys_id of the calling Password Reset process (table: \[pwd_process\]).
* param request: The form request object. Fields in the form can be accessed with request.getParameter('\<element-id\>'). The supported request parameter is sysparm_user_id, the user identifier value entered in the form.
{#c_InstalledPasswordResetScripts__ul_j1k_lch_dq}
{#c_InstalledPasswordResetScripts__table_m2w_pch_dq__entry__2}

| Name | Description |
|-|-|
| PwdIdentifyViaEmail | Verifies a user's identity by checking the email address. |
| PwdIdentifyViaUsername | Verifies a user's identity by checking the user name. |
[ ]

{#c_InstalledPasswordResetScripts__table_m2w_pch_dq}

## 'Enrollment form processor' script includes {#c_InstalledPasswordResetScripts__section_itf_yty_f1b}

Enrollment form processor script includes provide functionality for extending enrollment
form processing.  
All enrollment form processor script includes take the following parameters, and return a boolean indicating whether the user was successfully enrolled.

* params.userId: The sys_id of the user trying to enroll (table: \[sys_user\]).
* params.verificationId: The sys_id of the verification used to enroll (table: \[pwd_verification\]).
* params.enrollmentId: The sys_id of this enrollment process.
* request: The form request object. Fields in the form can be accessed with request.getParameter('\<element-id\>').
{#c_InstalledPasswordResetScripts__ul_xbd_gfh_dq}  
You should add the following information to the state of the enrollment process:

* gs.getSession().putProperty("result.status",status): Whether the user was successfully enrolled.
* gs.getSession().putProperty("result.message",message): An associated message to be returned to the UI, such as a detailed error message.
* gs.getSession().putProperty("result.value",value): A custom value associated with the enrollment.
{#c_InstalledPasswordResetScripts__ul_rf3_lfh_dq}
{#c_InstalledPasswordResetScripts__table_hhn_rfh_dq__entry__2}

| Name | Description |
|-|-|
| PwdEnrollQuestionsProcessor | Handles questions and answers for verification. |
| PwdEnrollSampleProcessor | Provides an enrollment processor for sample verification. |
| PwdEnrollSMSProcessor | Provides an enrollment processor for SMS verification. |
[ ]

{#c_InstalledPasswordResetScripts__table_hhn_rfh_dq}

## 'User account lookup' script includes {#c_InstalledPasswordResetScripts__section_kng_yty_f1b}

User account lookup script includes return the credential store account_id for a given
user.  
The following parameter returns the credential store account_id for a given user. params.userId: The sys_id of the user being checked (table: \[sys_user\]).{#c_InstalledPasswordResetScripts__table_mzz_xgh_dq__entry__2}

| Name | Description |
|-|-|
| PwdDefaultUserAccountLookup | Provides a default script for user account lookup from a user_id to the account in a credential store. The default mapping is to use the user name as the account name. |
[ ]

{#c_InstalledPasswordResetScripts__table_mzz_xgh_dq}

## 'Password generator' script includes {#c_InstalledPasswordResetScripts__section_tkh_yty_f1b}

Password generator script includes take the following parameter, and return an
auto-generated string password.

params.credentialStoreId: The sys_id of the calling Password Reset process (table: \[pwd_process\]).
{#c_InstalledPasswordResetScripts__table_qlk_54h_dq__entry__2}

| Name | Description |
|-|-|
| PwdDefaultAutoGenPassword | Generates a password from a random word and 4 digits. |
[ ]

{#c_InstalledPasswordResetScripts__table_qlk_54h_dq}

## 'Verification processor' script includes

If the user identity is verified, the verification processor script includes return
`true`.  
Verification processor script includes take the following parameters:

* params.resetRequestId: The sys_id of the current Password Reset request (table: \[pwd_reset_request\]).
* params.userId: The sys_id of the user to be verified (table: \[sys_user\]).
* params.verificationId: The sys_id of the verification (table: \[pwd_verification\]).
* request: The form request object. Access the fields in the form with request.getParameter('\<element-id\>').
{#c_InstalledPasswordResetScripts__ul_hh3_nqh_dq}
{#c_InstalledPasswordResetScripts__table_fyn_tqh_dq__entry__2}

| Name | Description |
|-|-|
| PwdVerifyPersonalDataConfirmationProcess | Verifies that the user accepts the answer. |
| PwdVerifyPersonalDataProcessor | Verifies that the user's answers match the expected data in the system. |
| PwdVerifyQuestionsProcessor | Provides question and answer verification of user input on the second page of the verification form. |
| PwdVerifySimpleProcessor | Provides simple verification of user input on the second page of the verification form. |
| PwdVerifySMSProcessor | Provides SMS verification of user input on the second page of the verification form. |
[ ]

{#c_InstalledPasswordResetScripts__table_fyn_tqh_dq}

## 'Post processor' script includes {#c_InstalledPasswordResetScripts__section_ffq_gty_f1b}

Post processor script includes execute custom actions after the Password Reset process has completed.  
All post processor script includes take the following parameters.

* params.resetRequestId: The sys_id of the current Password Reset request (table: \[pwd_reset_request\]).
* params.wfSuccess: A flag indicating whether the workflow completed successfully: True if, and only if, successful.
{#c_InstalledPasswordResetScripts__ul_lg4_lrh_dq}
{#c_InstalledPasswordResetScripts__table_cdk_4rh_dq__entry__2}

| Name | Description |
|-|-|
| PwdPostProcessor | Executes actions after the process completes for success, failure, or both conditions. |
[ ]

{#c_InstalledPasswordResetScripts__table_cdk_4rh_dq}
**Related topics**   

* [Using extension points to extend application functionality](https://www.servicenow.com/docs/access?context=extension-points&version=brazil&pubname=brazil-api-reference&ft:locale=en-US)
* [Using scripted extension points in server-side scripts](https://www.servicenow.com/docs/access?context=scripted-extension-points&version=brazil&pubname=brazil-api-reference&ft:locale=en-US)
* [Using UI extension points in server-side UI macros](https://www.servicenow.com/docs/access?context=ui-extension-points&version=brazil&pubname=brazil-api-reference&ft:locale=en-US)
* [Using client extension points in client-side UI scripting](https://www.servicenow.com/docs/access?context=client-extension-points&version=brazil&pubname=brazil-api-reference&ft:locale=en-US)

