Hello,
If you use Transformer 7.4, you can get it with Cognos Script Macro.
If you use Transformer 8.3, you need an MDL script, but this script allows you to generate the cube, but what happens if you need to create custom view associated to user class?