Restore only Permissions from Database Backup

Hi ERPNext Lovers,

I wonder if it is possible to restore only Persmissions from a backup, without any other data?
If yes, how exactly?

Thanks for your Answers


No, you can not restore only permission from the database backup. bench restore will restore full database backup.

Although, If you are on latest version on Frappe you can export and import the Custom DocPerm (Custom Permission) using fixtures.