First of all, fantastic plugin. We've been able to find some really cool things to do with it so far in some of our client sites.
Right now, we're creating a basic web app using WordPress and WPUF Pro as it's back bone. The premise is, there is a marketing company that resells services from large vendors. This marketing agency will have users sign up and apply to be a dealer for them. The dealer has access to an array of information in the “admin portal” of the website, including training materials, commission reports, etc. A unique feature is that some dealers may not be approved for all of the vendors the company offers, so access is limited based on what they are allowed to sell.
One of the features these dealers need to have is the ability to register “Sales Agents” that are somehow tied to their account. These sales agents have a more limited view of the information available in the “admin portal” (only training materials).
The problem I'm facing is I'm not 100% sure how to fully allow this feature. I know I can have a page specifically created for the “Dealers” with a registration form where they can register new users. What I'm concerned about is somehow associating the two accounts with one another. The “Dealer” screens won't be influenced by the accounts they are associate with, but the “Sales Agent” screens will be.
Since the “Dealers” can only see the certain vendor information based on their permissions, the “Sales Agents” the dealer creates need to only be able to see the same vendor information as the account that creates theirs.
What is the best way to achieve an association between the two in your opinion? I thought about using a hidden field for custom meta about the user, but I don't know how I would dynamically populate it's value. Any thoughts?