Skip to main content

Account Unlock

Overview

Use these commands to intercept the account-unlock command.

Input/OutputData Type
InputStdAccountUnlockInput
OutputStdAccountUnlockOutput

Example StdAccountUnlockInput

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

Example StdAccountUnlockOutput

{
"identity": "john.doe",
"key": {
"simple": {
"id": "john.doe"
}
},
"disabled": false,
"locked": false,
"attributes": {
"id": "john.doe",
"displayName": "John Doe",
"email": "[email protected]",
"entitlements": [
"administrator",
"sailpoint"
]
}
}

Implementation

Before account-unlock command

Use this logic to implement the command:

    .beforeStdAccountUnlock(async (context: Context, input: StdAccountUnlockInput) => {
logger.info(`Running before account, for account ${input.identity}`)
return input
})

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

After account-unlock command

Use this logic to implement the command:

    .afterStdAccountUnlock(async (context: Context, output: StdAccountUnlockOutput) => {
logger.info(`Running after account unlock for account ${output.identity}`)
return output
})

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