mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-09 20:37:47 +00:00
2.0 KiB
2.0 KiB
id, title, pagination_label, sidebar_label, keywords, description, slug, tags
| id | title | pagination_label | sidebar_label | keywords | description | slug | tags | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| account-disable-customizer | Account Disable | Account Disable | Account Disable |
|
Intercept the account disable command. | /connectivity/saas-connectivity/customizers/commands/account-disable |
|
Overview
Use these commands to intercept the account-disable command.
| Input/Output | Data Type |
|---|---|
| Input | StdAccountDisableInput |
| Output | StdAccountDisableOutput |
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": "example@sailpoint.com",
"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.