Forum Discussion
Teams: adding users through teams or groups
Not much response, so did some more investigation on my own. For what it's worth:
Team being specialized groups they have a lot in common. You can indeed add owners and members using the groups API. But you'll have to take into considiration that:
- An owner should also be a member. Adding an owner costs you 2 separate transactions.
- A group membership is translated to a team membership by a background process. This process can take up to 24 hours to complete.
- This "translation" process is only started when one of the team users has been online in team using the desktop app.
- You can add up to 20 members at a time You could use batched JSON to do this, but the batch can also only have 20 transactions.
- A 1 second delay is suggested after you add a group member.
On the other hand: When you add a member through the teams API the member is added with a role. That way an ower can be added with one transaction. The team API also imposes a 20 users limit, but there is also a method to add users in bulk. Using this method you can add up to 200 users in one transaction. I did not find any information as to delays when adding team members.
For the purpose of maintaining teams for classes (in an educational institute) the method of adding members using the team methods seems to be the better option.
On a side note (not in the original question but perhaps of interest): Creating a group and turning it into an educational team (with the educationClass template) does not work. The group has to be associated with a class. The only way, I found, you can do this is by using the create class method in the education API. That way the associated group is created automaticly.