Files
developer.sailpoint.com/docs/connectivity/saas-connectivity/connector-customizers/customizer-commands/change-password.md
darrell-thobe-sp 2cd5ccfc81 Prettified Code!
2024-04-18 10:31:05 +00:00

1.6 KiB

id, title, pagination_label, sidebar_label, keywords, description, slug, tags
id title pagination_label sidebar_label keywords description slug tags
change-password-customizer Change Password Change Password Change Password
connectivity
connectors
Change Password
Intercept the change password command. /connectivity/saas-connectivity/customizers/commands/change-password
Connectivity
Connector Command

Overview

Use these commands to intercept the change-password command.

Input/Output Data Type
Input StdChangePasswordInput
Output StdChangePasswordOutput

Example StdChangePasswordInput

"identity": "john.doe",
"key": {
    "simple": {
        "id": "john.doe"
    }
},
"password": "newPassword"

Example StdChangePasswordOutput

{
}

Implementation

Before change-password command

Use this logic to implement the command:

    .beforeStdChangePassword(async (context: Context, input: StdChangePasswordInput) => {
        logger.info(`Running before change password for account ${input.identity}`)
        return input
    })

The input object can be mutated and returned, but the same data type must still be returned.

After change-password command

Use this logic to implement the command:

    .afterStdChangePassword(async (context: Context, output: StdChangePasswordOutput) => {
        logger.info(`Running after change password`)
        return output
    })

The output object can be mutated and returned, but the same data type must still be returned.