Skip to main content

Account List

Overview

Use these commands to intercept the account-list command.

Input/OutputData Type
InputStdAccountListInput
OutputStdAccountListOutput

Example StdAccountListInput

"state": {"date": "1686341338871"},
"stateful": true

Example StdAccountListOutput

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

Use this logic to implement the command:

    .beforeStdAccountList(async (context: Context, input: StdAccountListInput) => {
logger.info(`Running before account list for account. State: ${input.state}`)
return input
})

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

After account-list command

Use this logic to implement the command:

    .afterStdAccountList(async (context: Context, output: StdAccountListOutput) => {
logger.info(`Running after account list for account ${output.identity}`)
return output
})

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

CAUTION

There will be delay in the aggregation process due to this customization process that involves additional processing.