User Management component: limiting roles assignment

Hi,
when I add a user by means of the User Management component I’m presented with the whole list of roles which were defined on the gateway: is there a way to let only some roles show up in that list?

Thank you in advance
regards

Yes, see the “filterRole” extension function