get team id from the team obj