Issue refs #1695: add module config and roles switching by user