mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-10 04:19:42 +00:00
1.9 KiB
1.9 KiB
id, title, pagination_label, sidebar_label, keywords, description, slug, tags
| id | title | pagination_label | sidebar_label | keywords | description | slug | tags | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| account-enable-customizer | Account Enable | Account Enable | Account Enable |
|
Intercept the account enable command. | /connectivity/saas-connectivity/customizers/commands/account-enable |
|
Overview
Use these commands to intercept the account-enable command.
| Input/Output | Data Type |
|---|---|
| Input | StdAccountEnableInput |
| Output | StdAccountEnableOutput |
Example StdAccountEnableInput
"identity": "john.doe",
"key": {
"simple": {
"id": "john.doe"
}
}
Example StdAccountEnableOutput
{
"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-enable command
Use this logic to implement the command:
.beforeStdAccountEnable(async (context: Context, input: StdAccountEnableInput) => {
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-enable command
Use this logic to implement the command:
.afterStdAccountEnable(async (context: Context, output: StdAccountEnableOutput) => {
logger.info(`Running after account enable for account ${output.identity}`)
return output
})
The output object can be mutated and returned, but the same data type must still be returned.