I am using strapi in my node.js project with mongoDB. When the database is fresh, all the roles and permissions are created properly. After that when i create a new content type(new collection) either from strapi CLI or from strapi admin UI it is creating the related roles and permissions properly. But when i switch the DB, the roles related to new content type are not appearing.
No Answer - but can confirm the same situation.
To clarify - it seems that the Users-Permissions plugin stores information about permissions at the point of creation.
When you then move the types (models) to a another server with DIFFERENT mongodb (but maybe same user) the Role-Permissions do not pickup on the fact that new models are available (and even showing permissions for models that no longer exists).
I.e. there is 0 checks it seems that syncs models as configured...
The only way it to migrate the user and user-permissions - but that is RISKY.