Help with legacy permissions

Hello.

I am trying to give permissions with an account, and I would like that account to be able to give permissions
only can give permissions on the screens and menu entries that he can see, that is to say, if I can not see the REPORTS menu that user can not give permissions on the reports menu,
if I can not see the REPORTS menu that user can not give permissions on the reports menu.

I would like to be able to assign permissions only on the screens that this user has permissions on.

How can I do what I am requesting?

I would recommend creating your own views and manipulating with ResourcePolicyEntity and ResourceRoleEntity.

Investigate SEC_RESOURCE_POLICY and SEC_RESOURCE_ROLE tables in your database to find out what values should be saved.