# Implementing RBAC for permissions

**URL:** <https://help.nextcloud.com/t/implementing-rbac-for-permissions/85178>\
**Category:** 💻 Development\
**Tags:** security, permission\_setting\
**Created:** [June 19, 2020, 4:27pm UTC](https://help.nextcloud.com/t/implementing-rbac-for-permissions/85178 "2020-06-19T16:27:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![summersab](https://help.nextcloud.com/user_avatar/help.nextcloud.com/summersab/32/18217_2.png) [@summersab](https://help.nextcloud.com/u/summersab)\
**Post date:** [June 19, 2020, 4:27pm UTC](https://help.nextcloud.com/t/implementing-rbac-for-permissions/85178/1 "2020-06-19T16:27:43Z")

</div>

I commented on a GitHub issue, and I’d like to chat about the best path for moving forward:

> <https://github.com/nextcloud/server/issues/19903>
>
> Is your feature request related to a problem? Please describe.
> The main problem is that, in medium and large scale, we have...

Currently, NC only has a handful of user classes: admin, group admin, user, and guest. However, there is a lack of granular permission management for those users. I think that something like PHP-RBAC by OWASP should be added in order to provide a mechanism for controlling the permissions of users, groups, etc:

> **[OWASP/rbac](https://github.com/OWASP/rbac)**
>
> PHP-RBAC is an authorization library for PHP. It provides developers with NIST Level 2 Standard Role Based Access Control and more, in the fastest implementation yet. - OWASP/rbac

This fork implements Postgres support:

> **[jamesvl/rbac](https://github.com/jamesvl/rbac)**
>
> PHP-RBAC is an authorization library for PHP. It provides developers with NIST Level 2 Standard Role Based Access Control and more, in the fastest implementation yet. - jamesvl/rbac

I may be able to assist with this effort, but I have only recently begun looking at the NC source, so I would need a little guidance. Also, I know that there is a lot of active development, so I wouldn’t want to do something this massive without first talking to a core dev. Any thoughts?
