"in a team" means you're definitely a member of the team. "with a team" means you may or may not be a "member" of the team. You may be an "outside consultant," or something like that.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.