Files
developer.sailpoint.com/docs/connectivity/saas-connectivity/connector-commands/account-enable.md
2024-07-01 12:56:17 -05:00

2.1 KiB
Raw Blame History

id, title, pagination_label, sidebar_label, keywords, description, slug, tags
id title pagination_label sidebar_label keywords description slug tags
account-enable Account Enable Account Enable Account Enable
connectivity
connectors
account enable
Enable an account on the source. /connectivity/saas-connectivity/commands/account-enable
Connectivity
Connector Command
Input/Output Data Type
Input - Enable StdAccountEnableInput
Output - Enable StdAccountEnableOutput

Example StdAccountEnableInput

"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"
        ]
    }
}

Description

You typically invoke the account enable command during the joiner, mover, leaver (JML) lifecycle. An identitys rejoining the organization or move to a role that grants access to a previously disabled account triggers the account enable command.

To use this command, you must specify this value in the commands array: std:account:enable

Implementing account enable is similar to implementing the account update command. If you have implemented your source call to modify any of the values on your source, then you can use the same method to implement the command. The following code implements enable:


.stdAccountEnable(async (context: Context, input: StdAccountEnableInput, res: Response<StdAccountEnableOutput>) => {
    let account = await airtable.getAccount(input.key)
    const change: AttributeChange = {
        op: AttributeChangeOp.Set,
        attribute: 'enabled',
        value: 'true'
    }
    account = await airtable.changeAccount(account, change)
    res.send(account.toStdAccountEnableOutput())
})