No doubt this is possible, but I do have to warn that it is not quite how the jmix implementation of springboot works. Springboot operates on a more group based policy listing making what you’re trying to do fairly difficult. This is primarily why we created domain structure technology in the first place as computers operate on the same principles.
I’ve only ever seen this done really well in a web application when merged with something like ldap/Active Directory for user management and then assigning group provisioning that the application reads from the AD server.
To do an (if, user A has a permission, nest user B’s permission would have to be done from the “Security” section and be manually written up, and it would have to have a defined tree structure similar to the AD/DC solution I described.
Hopefully someone else has some better news for you, as there are some great devs on here. But in my experience the answer is wrap it into a AD/DC/LDAP server for authentication and user management or enter a very difficult ream of interdependent functions that eventually stop working on you.
Good Luck,
Oran