# Help in replacing the acl plugin with authorization plugin with database in cakephp 4.4

**URL:** <https://discourse.cakephp.org/t/help-in-replacing-the-acl-plugin-with-authorization-plugin-with-database-in-cakephp-4-4/11762>\
**Category:** Need Help\
**Created:** [December 28, 2023, 8:51pm UTC](https://discourse.cakephp.org/t/help-in-replacing-the-acl-plugin-with-authorization-plugin-with-database-in-cakephp-4-4/11762 "2023-12-28T20:51:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdeanquin](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/mdeanquin/32/1802_2.png) [@mdeanquin](https://discourse.cakephp.org/u/mdeanquin)\
**Post date:** [December 28, 2023, 8:51pm UTC](https://discourse.cakephp.org/t/help-in-replacing-the-acl-plugin-with-authorization-plugin-with-database-in-cakephp-4-4/11762/1 "2023-12-28T20:51:37Z")

</div>

How can I replace the acl plugin with the authorization plugin using a database?  
I need to give authorization to users in a dynamic way.

---

<div class="post-metadata">

**Author:** ![KevinPfeifer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kevinpfeifer/32/3365_2.png) [@KevinPfeifer](https://discourse.cakephp.org/u/KevinPfeifer)\
**Post date:** [December 28, 2023, 10:22pm UTC](https://discourse.cakephp.org/t/help-in-replacing-the-acl-plugin-with-authorization-plugin-with-database-in-cakephp-4-4/11762/2 "2023-12-28T22:22:24Z")

</div>

You can take a look at how CakeDC has done RBAC inside [GitHub - CakeDC/users: Users Plugin for CakePHP](https://github.com/CakeDC/users) or more specifically [GitHub - CakeDC/auth: Auth objects for CakePHP](https://github.com/CakeDC/auth)

* * *

Yes, this is quite the major refactor you will have to do but reason behind this is the fact, that you will have far more granular control over what is happening within your app.

The new auth plugins are “just” the basement of how you want to build your own auth systems. Its NOT a ready made permission system (like CakeDC/Users RBAC) but rather a set of build tools so you can create exactly what you need.
