@charleslcso The best way I can think of is as follows…
- Create a teams doctype that stores the team name, leader and the list of team members (child table doctype)
- Filter the contacts list view using the teams doctype
- For further control, in contact form do a check using the teams doctype to prevent unauthorized modification
For the list view filter, you can use the list view settings onload to determine whether the user is a leader or member…
You can also use this plugin of mine since it can help in filtering the list view…
Best regards…