Support users-groups.json referring to store paths

Fixes #4016.