# User Roles With users Management help

**URL:** <https://discourse.cakephp.org/t/user-roles-with-users-management-help/5430>\
**Category:** Need Help\
**Created:** [December 19, 2018, 12:57am UTC](https://discourse.cakephp.org/t/user-roles-with-users-management-help/5430 "2018-12-19T00:57:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johndavepaclar](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@johndavepaclar](https://discourse.cakephp.org/u/johndavepaclar)\
**Post date:** [December 19, 2018, 12:57am UTC](https://discourse.cakephp.org/t/user-roles-with-users-management-help/5430/1 "2018-12-19T00:57:21Z")

</div>

I have created a borrowing system with users management. The overall functionalities of the borrowing system is done, but i want only users with the role\_id of 2 can access the users management function. The database is done, i just need help on how to restrict the users with the role\_id of 2 to the users management.
