Hi,
Welcome to Toolset support and I'd be happy to assist.
Based on what you've shared, the requirement can be divided into two main parts:
1. Connecting users with posts:
Since Toolset post relationships feature can be used to link two post types but not user and a post type, you'll need to use an anchoring post type for this, as explained at:
https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/
In summary, whenever a new user would register on a website, he/she will need to create exactly one "User Profile" post where he/she is the author of that post.
This "User Profile" post will allow you to link that user with other post types too.
Once you'll have the information about the current user's "User Profile" post, you'll be able to get information about all the related posts in different post types.
2. Controlling team access for the projects:
For dynamically structuring this, where the web site's admin has to do minimal manual work, you can consider:
a). Post Types:
- User Profiles
- Teams
- Projects
b). Post Relationships:
- Teams <-> User Profiles
A many-to-many relationship as one team can have multiple users and likewise, one user can be part of multiple teams.
- Projects <-> Teams
A many-to-many relationship as one project can have multiple teams working on it and likewise, one team can be working on multiple projects.
Through this structure, you'll be able to add conditional checks to show information about a particular project only if the current user is the author of that project post, or is part of a team that is attached to that project:
https://toolset.com/documentation/user-guides/views/conditional-html-output-in-views/
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar