I'm learning to make a project using Flask and Flask-User and MongoEngine. What I want to do is an account holder (a company) signs up to use the app and then that account holder can create sub-user access with limited privileges for their staff. When I followed the Flask-User documentation on Role and UserRoles data-models, it seems like I cannot create that kind of super-user sub-user structure because user_id refers back to the user that registers. So how do I go about doing this?
Thanks!