Skip to main content
POST

Add existing or new users

Choose the request shape based on whether each person already has a Prophecy account: When you create users, isRequesterGlobalAdmin controls what happens next: Set 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

X-AUTH-TOKEN
string
required

Prophecy access token

Body

application/json
users
object[]

One entry per person.

teams
string[]

One or more team names (not team IDs).

isAdmin
boolean

true makes the people team admins as well as members.

seatsRequested
integer

Leave as 0 unless your Prophecy administrator gives you a number of seats to request.

isRequesterGlobalAdmin
boolean

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.

Response

200 - application/json

Invitation results

success
boolean

Indicates whether all invitations succeeded.

message
string

Summary of the outcome, for example 1 invitations successful. or N team invitation failures.

details
object