Skip to main content

Account Read

Overview

Use these commands to intercept the account-read command.

Input/OutputData Type
InputStdAccountReadInput
OutputStdAccountReadOutput

Example StdAccountReadInput

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

Example StdAccountReadOutput

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

Use this logic to implement the command:

    .beforeStdAccountRead(async (context: Context, input: StdAccountReadInput) => {
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-read command

Use this logic to implement the command:

    .afterStdAccountRead(async (context: Context, output: StdAccountReadOutput) => {
logger.info(`Running after account read for account ${output.identity}`)
return output
})

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