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

After entitlement-list is not available for customization at this time. If you need to modify the values of the response, it is recommended that you use Transforms.