I’ve an app in my local setup where I’ve configured some permissions for different roles in the Role Permissions Manager. Is it possible to export it in a fixture (JSON) like format and apply these changes to the production site?
Since there are a lot of roles/permissions, I’m looking for a solution to export/import these permissions rather than manually creating and maintaining them on the server & development setup.
I’ve generated a fixture but all the records have "user_permission_doctypes": null and when I migrated this on the server I couldn’t see for which doctype the permissions are applied. Thus, effectively it didn’t help.
I have a hard time understanding this. What is the right way to export permissions from one site to another? I understand you can export fixtures on the table Custom DocPerm but how are these permissions connected to a doctype since there is no link between the permissions and doctypes?
I was wondering if somebody experienced explain how we could export the custom roles permissions to our custom app so we could use it on other ERPNext instances. I am able to export all customizations that i do on doctypes via property setters fixture but for the role and permissions i dont know what is the best way