All Projects → alan2207 → strapi-plugin-sync-roles-permissions

alan2207 / strapi-plugin-sync-roles-permissions

Licence: MIT License
Store user roles and permissions configuration as a JSON file and then import and reuse it any time.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to strapi-plugin-sync-roles-permissions

strapi-plugin-import-export-content
Csv and Json import / export content plugin to Strapi
Stars: ✭ 129 (+279.41%)
Mutual labels:  strapi, strapi-plugin, strapi-cms
strapi-plugin-migrate
Strapi-Plugin-Migrate helps to migrate Strapi data from one environment of your app to another. For example development > staging
Stars: ✭ 71 (+108.82%)
Mutual labels:  strapi, strapi-plugin, strapi-cms
strapi-plugin-sitemap
🔌 Generate a highly customizable sitemap XML in Strapi CMS
Stars: ✭ 136 (+300%)
Mutual labels:  strapi, strapi-plugin
strapi-plugin-github-publish
This is a plugin for Strapi headless CMS. It lets you trigger a GitHub Action workflow when the site is ready to be published.
Stars: ✭ 35 (+2.94%)
Mutual labels:  strapi, strapi-plugin
strapi-plugin-zeasy-image-api
Strapi plugin to ease the process importing Unsplash image with attribution
Stars: ✭ 28 (-17.65%)
Mutual labels:  strapi, strapi-plugin
strapi-plugin-vercel
▲ Strapi plugin for Vercel Platform
Stars: ✭ 28 (-17.65%)
Mutual labels:  strapi, strapi-plugin
nx-extend
Nx Workspaces builders and tools
Stars: ✭ 67 (+97.06%)
Mutual labels:  strapi
isstrapiready
🚀 Discover the advancement of Strapi for the latest Strapi version and the list of compatible plugins. (Current: v4)
Stars: ✭ 21 (-38.24%)
Mutual labels:  strapi
create-fullstack-app
Create Fullstack TypeScript application with ease.
Stars: ✭ 29 (-14.71%)
Mutual labels:  strapi
strapi-template-corporate
Template to create Strapi projects pre-configured for corporate sites
Stars: ✭ 80 (+135.29%)
Mutual labels:  strapi
devFolio
Portfolio built with React (Gatsby) • Strapi • GraphQL 🎯
Stars: ✭ 25 (-26.47%)
Mutual labels:  strapi
Gatekeeper
Lightweight library in C# for implementing roles-based access control (RBAC). With Gatekeeper, you can define users, roles, resources, and permissions, and authorize requests.
Stars: ✭ 25 (-26.47%)
Mutual labels:  roles-permission-management
strapi-starter-gatsby-blog
Updated version of the first Gatsby starter with much more features
Stars: ✭ 140 (+311.76%)
Mutual labels:  strapi
strapi-starter-minimal-sapper-blog
A minimal Sapper Blog built with Strapi
Stars: ✭ 44 (+29.41%)
Mutual labels:  strapi
wongames
🎮 Ecommerce de jogos no estilo Steam. Desenvolvido com Next.js, TypeScript, GraphQL, etc.
Stars: ✭ 18 (-47.06%)
Mutual labels:  strapi
ckeditor5-build-strapi-wysiwyg
Enhanced build of CKEditor 5 to replace default Strapi WYSIWYG editor
Stars: ✭ 27 (-20.59%)
Mutual labels:  strapi
strapi-firebase-auth
Learn how to implement firebase authentication into strapi.
Stars: ✭ 25 (-26.47%)
Mutual labels:  strapi
strapi-okr-api
An open-source API first CMS solution for managing and integrating OKRs into your applications.
Stars: ✭ 56 (+64.71%)
Mutual labels:  strapi
covid19-pr-api
COVID-19 Open API for Datasets in Puerto Rico
Stars: ✭ 21 (-38.24%)
Mutual labels:  strapi
iam-policies
Iam policies implementation for create roles and manage permissions
Stars: ✭ 20 (-41.18%)
Mutual labels:  roles-permission-management

strapi-plugin-sync-roles-permissions

NPM

Store user roles and permissions configuration as a JSON file and then import and reuse it any time.

Admin

Motivation

Sometimes our applications require lots of different types of users with a lot of different permissions. Strapi with it's strapi-plugin-users-permissions gives us a lot of functionalities out of the box, which is great. However, it would be nice to be able to store the roles and permissions configuration in order to be able to share it across multiple instances of the application. It is especially useful during development so we don't have to configure it every time we clear the db.

With this plugin we can export existing roles and permissions configuration as a JSON file at any point of time, and then whenever we need to update the application with the given configuration we can just upload the same JSON file and roles and permissions will be synced in the db.

Installation

1.

This plugin is built on top of the official strapi-plugin-users-permissions plugin, so make sure it is already enabled.

2.

Install with npm:

npm install --save strapi-plugin-sync-roles-permissions
npm run build

Install with yarn:

yarn add strapi-plugin-sync-roles-permissions
yarn build

4.

Start your strapi server.

Usage

  1. If you have a new application, configure all your roles and permissions from roles section in settings of the admin panel.

  2. Then you can export your roles and permissions into a JSON file and store it somewhere.

  3. Then any time you want to populate your db with the exported roles and permissions configuration, you can do that by importing the JSON file and update roles and permissions.

  4. The same proccess can be repeated any time you want to save your current roles and permissions configuration. Your roles configuration in the db will be overriden with the one from the JSON file.

LICENSE

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].