Skip to main content

Account Disable

Overview

Use these commands to intercept the account-disable command.

Input/OutputData Type
InputStdAccountDisableInput
OutputStdAccountDisableOutput

Example StdAccountDisableInput

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

Example StdAccountDisableOutput

{
"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-disable command

Use this logic to implement the command:

    .beforeStdAccountDisable(async (context: Context, input: StdAccountDisableInput) => {
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-disable command

Use this logic to implement the command:

    .afterStdAccountDisable(async (context: Context, output: StdAccountDisableOutput) => {
logger.info(`Running after account disable for account ${output.identity}`)
return output
})

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