Skip to navigation

Add a user

Authentication

AuthorizationBearer

API session token from POST /v1/admin/session (8 hours). Sign-in itself is Google Workspace; see research R2.

Headers

Idempotency-KeystringOptionalformat: "uuid"

One key per user attempt; retries reuse it and get the original result.

Request

This endpoint expects an object.
namestringRequired<=100 characters
emailstringRequiredformat: "email"
Company email.
roleIdstringRequired<=255 characters
primaryOfficeGroupIdstringRequired<=255 characters
accessobjectRequired
activebooleanRequired
Inactive users cannot sign in.
versionintegerOptional

Version you last read. Omit on create; required on update. A stale value returns 409 version_conflict.

Response

Created
namestring<=100 characters
emailstringformat: "email"
Company email.
roleIdstring<=255 characters
primaryOfficeGroupIdstring<=255 characters
accessobject
activeboolean
Inactive users cannot sign in.
idstringOptionalRead-only<=255 characters

Server-generated.

lastSignInAtdatetimeOptionalRead-only
versionintegerOptional

Version you last read. Omit on create; required on update. A stale value returns 409 version_conflict.

Errors

401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error