The add user action is very similar to the change password function. Copy the entire 'change_password' action from the edit function into the 'menu' element.
We need to change the shared constant 'USER_NAME' to type 'raw' because we need to get the value from the form, just like we needed to get the password from the form previously.
The form needs to now have a field for the user to input the new user's name.
When we perform the stored procedure 'DB2AUTH.ADD_USER,' we are using the user name from the form input, not from the row. Therefore, we no longer need to define the parameter that used to fetch the value from the row.
Finally, one extra onMatch condition is added, because there is one extra error message pattern to our stored procedure.