Files
developer.sailpoint.com/docs/connectivity/saas-connectivity/connector-customizers/customizer-commands/account-create.md
2024-02-28 12:14:29 -05:00

2.1 KiB

id, title, pagination_label, sidebar_label, keywords, description, slug, tags
id title pagination_label sidebar_label keywords description slug tags
account-create-customizer Account Create Account Create Account Create
connectivity
connectors
Account Create
Intercept the account create command. /connectivity/saas-connectivity/customizers/commands/account-create
Connectivity
Connector Command

Overview

Use these commands to intercept the account-create command.

Input/Output Data Type
Input StdAccountCreateInput
Output StdAccountCreateOutput

Example StdAccountCreateInput

{
    "attributes": {
        "id": "john.doe",
        "email": "example@gmail.com",
        "department": "external",
        "displayName": "John Doe",
        "password": "test",
        "entitlements": [
            "user",
            "administrator"
        ]
    }
}

Example StdAccountCreateOutput

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

Use this logic to implement the command:

    .beforeStdAccountCreate(async (context: Context, input: StdAccountCreateInput) => {
        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-create command

Use this logic to implement the command:

    .afterStdAccountCreate(async (context: Context, output: StdAccountCreateOutput) => {
        logger.info(`Running after account create for account ${output.identity}`)
        return output
    })

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