basic team management done.
tenant set, teams and users now working correctly scoped to tenant id.