I had this demand, in creating a ssh user with restricted permissions, but with rights only to work in your area of the aaPanel site.
I'll post a link to the automated script below!
Ready and functional.
I did it using CentOS 7.x
I hope you can help @aaPanel_Jose and his team to create this integrated function when creating FTP via GUI