Add users to teams
Add one or more people to one or more teams. Every person in users is added to every team in teams. For people who already have a Prophecy account, set createUser to false and invitationStatus to Accepted; they join the team immediately. For new people, set createUser to true and omit invitationStatus; the same call creates their account.
Add existing or new users
Choose the request shape based on whether each person already has a Prophecy account:isRequesterGlobalAdmin controls what happens next:
isRequesterGlobalAdmin to true only if your account is a Prophecy administrator for the whole instance. The get current user API returns ClusterAdmin as the account type in that case.
If Prophecy sends email on your instance, new people also get an invitation email. The response’s emailResult says whether one was sent.
To confirm that people joined a team, use the get team members query.
Troubleshoot team invitation failures
A response with"success": false and N team invitation failures means that many people were not added. The response does not say why. It is one of these causes:
Invite registration failed in the message is a different error. The account was created, but
Prophecy’s seat registration did not accept it. Ask your Prophecy administrator about available
seats.Headers
Prophecy access token
Body
One entry per person.
One or more team names (not team IDs).
true makes the people team admins as well as members.
Leave as 0 unless your Prophecy administrator gives you a number of seats to request.
Whether your account is a Prophecy administrator for the whole instance (account type ClusterAdmin). When creating users, true means invited people can use Prophecy as soon as they sign in, and false means the invitation waits until a Prophecy administrator approves it. Leave as false when adding people who already have an account.

