Hey Stefan,
Unfortunately it means that the mapped-role-mapper doesn't support expressions at the moment. In the meantime, the simplest solution would be to hardcode the mappings. Alternatively, you could create a custom-role-mapper. Briefly summarized:
1. Extend the existing mapped-role-mapper[1] into a new class. It still includes a method for loading mappings from the configuration, which does support expressions. Elytron has some documentation on how to create and deploy custom components[2].
2. Add the custom role mapper with the expressions. For example, if the class is `com.company.MappedRoleMapper`, with the module named `custom-mapped-role-mapper`:
/subsystem=elytron/custom-role-mapper=MyCustomRoleMapper:add(module=custom-mapped-role, class=com.company.MappedRoleMapper, configuration={key=${env.VAR1},key=${env.VAR2}})
The CLI command is slightly different since output mapping is a string instead of a list, and only values can be set with environment variables. Setting keys would require modifying MappedRoleMapper.initialize()
Best,