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 entitlement. 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 entitlement type ${output.type}`)
return output
})

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

CAUTION

There will be delay in the aggregation process due to this customization process that involves additional processing.