User can create account for another user

Hi everyone is it possible to create an investment system where a user can invite another user with a unique ID and put the invited user under hs downline…display the total downline.

This is absolutely possible. When the new user is created just send them an email with a temporary password linking them to the password reset page.

If you want a user to be able to see specific data that is private, you just need to add a field to your data table that stores the user IDs which are allowed to access that data. Then set your data permissions accordingly.