Permissions Sync

Syncing current permissions and roles

Strapi saves roles and permissions at the database layer, meaning there's no inherent configuration available to us in the code. This is by design, as Roles and Permissions should not be programmatically dealt with anyways. However, that makes replicating roles and permissions on each environment a monumental task, especially for the amount of database models we have. In this case, we'll use an export and import feature for development purposes only.

After creating your Super Admin account, grab the strapi-roles-and-permissions.json from Davon to get the updated permissions.

Navigate to the admin panel at localhost:1337 and click on the plugin Sync Roles and Permissions

Press the Choose File button and import the strapi-roles-and-permissions.json

Last updated

Was this helpful?