Entitlement List
Overview
Use these commands to intercept the entitlement-list command.
Input/Output | Data Type |
---|---|
Input | StdEntitlementListInput |
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.