For ManyToMany relationship, you can create a new DataType called “Team Member” which will have 2 fields a Team and a User. And when you want to give access to User of a team, you can create a new record of TeamMember table. And you can revoke access by deleting the TeamMember record.
In privacy rules, you can check if TeamMember object exists with the User and the Team or not, if exists, then grant access.
1 Like