If I understand your question correctly you want each User to have a separate Role in each Team, yes?..
So all you need to do is create a datatype called something like user_team_role that relates to a User, a Team, and a Role.
You could then have a list field on the User datatype called Team Roles, which is a list of user_team_roles (although that might not be necessary, it might be easier and more performant depending on how you want to access those roles).
may find that a review of generic user/group/permissions would be help with your context as its pretty much the same old entities / relationships as always …