Skip to main content

Entitlement List

Overview

Use these commands to intercept the entitlement-list command.

Input/OutputData Type
InputStdEntitlementListInput

Example StdEntitlementListInput

{
"type": "group"
}

Implementation

Before entitlement-list command

Use this logic to implement the command:

    .beforeStdEntitlementList(async (context: Context, input: StdEntitlementListInput) => {
logger.info(`Running before entitlement list for account. State ${input.state}`)
return input
})

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

After entitlement-list command

Use this logic to implement the command:

    .afterStdEntitlementList(async (context: Context, output: StdEntitlementListOutput) => {
logger.info(`Running after entitlement list for account ${output.identity}`)
return output
})

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