Role-Based Access Control available for free in Strapi Community Edition in the new v4.8
Tags: strapi, rbac
Published: 2023-03-16 09:30:12

The moment so long awaited by many Strapi users is here. Strapi custom roles and permissions (also known as RBAC) is available in the community edition starting from v4.8. For free. Without limitations. 

## Custom roles and permissions available for free
Before Strapi v4.8, the free Community Edition RBAC was limited to only three predefined roles: SuperAdmin, Editor, and Author. Granular and custom roles and permissions were only available in the [Enterprise Edition](https://strapi.io/enterprise), with a limitation on the number of users for each plan.

After listening to the community feedback and analyzing the Strapi pricing model, we have decided to [sunset the Strapi Enterprise Bronze or Silver plans](https://strapi.io/blog/announcing-changes-to-the-strapi-enterprise-plans) and remove the limitations on the RBAC feature. As of today, all Strapi users who [migrate to v4.8](https://docs.strapi.io/dev-docs/migration-guides) are able to create an unlimited number of custom roles and permissions. We believe that this feature is indispensable to build efficient and secure content management processes and it should be accessible to all Strapi users and plugin developers.

## What are custom roles and permissions?
[Custom roles and permissions](https://strapi.io/features/custom-roles-and-permissions) is one of the most powerful Strapi features, which provides Role-Based Access Control (RBAC) for users and groups. 

RBAC is a security model that defines the permissions and actions that each user or group can perform within an application. This model provides a granular level of control over what fields, content types, plugins or settings users can access, edit, create, or delete within an application.

![https://docs.strapi.io/assets/images/administrator_roles-edition-7c6b0feb51774425aebb36002ced92be.png](/uploads/administrator_roles_edition_7c6b0feb51774425aebb36002ced92be_22674879a1.png)

Role-Based Access Control allows you to create custom roles that are tailored to specific user needs. This means that you can define what actions a user can take within an application, based on their role, without having to give them full access to the entire system.

It also allows you to [define custom conditions](https://docs.strapi.io/dev-docs/configurations/rbac#declaring-new-conditions) of permissions for any user. For example, you can define "field level"  condition allowing access only to "invoices" where the amount is lower than $15K. If the Internationalization plugin is installed, you can define which authors should be granted privileges to update the "English" locale.

![https://docs.strapi.io/img/assets/users-permissions/administrator_custom-conditions.png](/uploads/administrator_custom_conditions_640bffcb5b.png)

This level of granularity and flexibility is what makes the Strapi Role-Based Access Control system stand out from the competition. Please have a look at the [documentation](https://docs.strapi.io/user-docs/users-roles-permissions/configuring-administrator-roles) and this [article about best practices](https://strapi.io/blog/reasons-and-best-practices-to-create-custom-roles) to learn more.

<iframe width="560" height="315" src="https://www.youtube.com/embed/QVF5sXE0RBQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

## Best practices & use cases

This security  feature is often a must-have in a wide range of industries and  projects, including [financial services](https://strapi.io/financial-services), retail, telecom, government, healthcare, retail and more.

If you're looking to develop a Strapi application for managing a network of franchises, partner portals, or any distributed network and global communities comprising multiple subgroups or entities, this feature would prove extremely beneficial.

![https://docs.strapi.io/assets/images/administrator_roles-eef9faf74a2dbe3204dc5d248cf924d8.png](/uploads/administrator_roles_eef9faf74a2dbe3204dc5d248cf924d8_a74419acb5.png)

Here are some of the best practices on how to make most out of custom roles and permissions:  

-   Define roles based on user needs: Define roles based on what users need to do within the application, rather than creating roles based on job titles or department names.

-   Limit permissions: Limit permissions to only what users need to do their job. Don't give users access to features or data that they don't need.

-   Enforce the lowest level of permissions first: each role should be strictly based on each contributor's responsibilities. Reduce risk, both from malicious intent and user errors by following the[ principle of least privilege](https://en.wikipedia.org/wiki/Principle_of_least_privilege).

-   Add granular CRUD permissions for each field: Set different permissions for each field in any content type for any Create, Read, Update or Delete operation. 

-   Regularly review permissions: Regularly review permissions to ensure that users only have access to what they need. Remove permissions for users who no longer need them.

-   Use groups: Use groups to assign roles to multiple users at once, rather than assigning roles to individual users. This makes it easier to manage permissions for large numbers of users.

-   [Audit permissions](https://strapi.io/blog/reasons-and-best-practices-for-using-audit-logs-in-your-application): Audit permissions regularly to ensure that they are being used appropriately. Check for any unusual or suspicious activity that may indicate a security breach.

## Strapi Enterprise plans update
We've recently announced changes to the Strapi Enterprise plans. Apart from custom roles and permissions becoming available in the Community Edition, here's what you need to know: 

-   We've sunsetted the Strapi Enterprise Bronze and Silver on March 1st, 2023. 

-   The Strapi Enterprise Gold plan is renamed Strapi Enterprise. 

-   Bronze and Silver customers have until their renewal date to transition to [Strapi Cloud](https://strapi.io/cloud) (a new managed platform to boost your team velocity), [Strapi Enterprise](https://strapi.io/pricing-self-hosted) or  Strapi Community Edition v4.8 and upcoming versions.

-   If your subscription period ends soon and you absolutely need the RBAC feature but can't migrate to Strapi v4.8, please send an email to support@strapi.io. 

-   We are introducing the concept of "[Seats](https://support.strapi.io/support/solutions/articles/67000715036-what-is-the-definition-of-a-user-seat-and-environment-)" in our pricing model to align with our Strapi Cloud offering and avoid current confusion around the definition of Admin Users.

-   A [new audit logs feature](https://strapi.io/blog/announcing-strapi-v4.6) is now available in Strapi Enterprise.

If you have any questions regarding the Strapi Enterprise Edition, please have a look at [this article](https://strapi.io/blog/announcing-changes-to-the-strapi-enterprise-plans) or contact us directly:

-   [Contact sales](https://strapi.io/gold-form) to learn more about the Enterprise Edition

-   Customers can contact support@strapi.io directly

## New plugins on Strapi Market
The Strapi marketplace now lists more than 100 plugins, providers and custom fields. We thank all community members for contributing their work, allowing other Strapi users to easily extend their app. 

Here are the new plugins, available on the Strapi Market: 

-   [ChatGPT](https://market.strapi.io/plugins/strapi-chatgpt) by [@AsyncWeb](https://github.com/AsyncWeb) - integrate ChatGPT into your Strapi application. You get both a UI to interact with ChatGPT and an API end-points to integrate into your applications.

-   [Video custom field](https://market.strapi.io/plugins/@sklinet-strapi-plugin-video-field) by [@SKILNET](https://github.com/SKLINET) - allows you to preview, and add videos with external sources to your application.

-   [Open AI](https://market.strapi.io/plugins/@strapi-plugin-open-ai) - an official Strapi plugin that allows you to create Open AI completion from a prompt.

-   [Image color palette](https://market.strapi.io/plugins/@studio123-strapi-plugin-image-color-palette) by [@codymx](https://github.com/codymx) - a plugin that extends image uploads to generate and attach a color palette to the schema when uploaded.

Get your plugin or provider listed on the [Strapi Market](https://strp.cc/3G1F33A) and showcase your work to more than 20,000 monthly visitors. Here are all the [resources](https://strp.cc/3Tlaetx) you need to create and promote a plugin or provider and the [submission form](https://strp.cc/3FXE8Ry) for listing it on the marketplace.

## Join the monthly Community Call
Meet the Strapi team members who worked on the latest feature, share your feedback, ask questions, and learn what’s coming next.  
[Join us](https://strapi.io/events) on March 23rd, 10AM CST.

## Try Strapi v4.8 out now
To create a new Strapi v4.8 project, simply run the following command: 

npx create-strapi-app my-project --quickstart

Follow the [Quick Start Guide](https://strp.cc/3ho246m) for detailed step-by-step instructions or have a look at a [video instruction](https://youtu.be/h9vETeRiulY).

We would love to hear what you think about the new features! Let us know in this forum thread.

## Other updates: 
-   [Strapi Cloud is live](https://strapi.io/blog/strapi-cloud-is-now-available)

-   Audit logs improvements, Data Transfer in [Strapi v4.7](https://strapi.io/blog/announcing-strapi-v4.7)

-   Relations and component reordering, data export & import, audit logs in [Strapi v4.6](https://strapi.io/blog/announcing-strapi-v4.6)

## Building Strapi together
Strapi is an open-source product that grows thanks to community support and contributions.

Here's how you can help us improve the product:
-   Contribute to the project on [Github](https://github.com/strapi/strapi/blob/master/CONTRIBUTING.md)

-   Share what features you'd love to have in our [public roadmap](https://strp.cc/3fQSZCK)

-   Create Strapi plugins and submit them to the [Strapi market](https://strp.cc/3G1F33A)

-   Showcase the projects you built in [Strapi Showcase](https://strp.cc/3hmKqjn) 

-   Join the [Strapi Cloud Beta program](https://strp.cc/3AnuoN1)

We appreciate each contribution and piece of feedback that you share. Stay tuned for more updates!