mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-10 12:27:47 +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-unlock-customizer | Account Unlock | Account Unlock | Account Unlock |
|
Intercept the account unlock command. | /connectivity/saas-connectivity/customizers/commands/account-unlock |
|
Overview
Use these commands to intercept the account-unlock command.
| Input/Output | Data Type |
|---|---|
| Input | StdAccountUnlockInput |
| Output | StdAccountUnlockOutput |
Example StdAccountUnlockInput
"identity": "john.doe",
"key": {
"simple": {
"id": "john.doe"
}
}
Example StdAccountUnlockOutput
{
"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-unlock command
Use this logic to implement the command:
.beforeStdAccountUnlock(async (context: Context, input: StdAccountUnlockInput) => {
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-unlock command
Use this logic to implement the command:
.afterStdAccountUnlock(async (context: Context, output: StdAccountUnlockOutput) => {
logger.info(`Running after account unlock for account ${output.identity}`)
return output
})
The output object can be mutated and returned, but the same data type must still be returned.