So, I quick update on this. My colleagues suggested these libraries:
Manage Role-Based Access Control with the REST API
I think Athenz is particularly interesting. But it may be a bit overkill for a little application. And I haven't found any company or online service that provides this functionality, unfortunately.