Sounds very interesting, I will explore this route as well.
Don’t think going down the route of using the template will be the best for me, as it is probably more complicated reworking my whole RBAC system to fit that template than just implementing set_config/pre_request. Great work @Broberto !