I have a need to implement a quite sophisticated RBAC model in my application. It very much resembles Azure RBAC: https://docs.microsoft.com/en-us/azure/role-based-access-control/overview
Let me explain it on an example:
Say I have a resource type: server_group.
And then I have roles:
admin(can doCRUDonserver_group+ other permissions)editor(can doRUonserver_group+ other permissions)viewer(can onlyRserver_group+ other permissions)
Those roles are tenant-wide roles: the scope of operation here is the organization within which the current user is registered.
This is the traditional model of assigning permissions on roles for resource types.
But then, what if you have a need to grant more privileges to a certain user that has a role of a viewer but within a scope of a particular instance of a resource type?
Mark is an administrator, he has created a server_group sg1 and he wants to assign a role of a server_group_editor to Alice, who has a viewer tenant-wide role.
The server_group_editor role has a scope of application: server_group.
server_group_editor adds the ability to update the server_group resource type.
Since Alice has the role of server_group_editor within the sg1 instance, she now can edit this resource.
Previously she couldn’t do that as her tenant-wide permissions allowed her to only list all server groups.
I hope it makes sense.
That being said, I would love to know if there are products out there that support such a flexible RBAC model, be it either SaaS or applications that can be deployed as a standalone service?
I was looking at Auth0, Okta, KeyCloak, and I cannot see them supporting this model.
Thanks in advance!

