I’m on jsreport 4.9.0
and running multiple instances. For deployments, I use the export/import workflow (jsexport → import into new instance).
The issue occurs specifically with groups:
When a group already exists in the target environment, everything works fine — imported entities correctly inherit permissions and the entity's visibilityPermissions
includes the group's ID.
When a group is newly created by the import, the entities the have the group permission end up with an empty visibilityPermissions
array. As a result, users in that group cannot see the entities they should.
Workarounds:
If I remove, save then re-add a permission on the group and save it again,
then visibilityPermissions is correctly populated and everything works.
I’ve tried both with and without the --fullImport
flag — no difference.
It looks like the importer isn’t populating visibilityPermissions
for newly created groups.
Could you confirm if this is a bug in the import/export flow, or if I’m missing a required step?