Skip to main content
POST
/
v1
/
users
{
  "name": "<string>",
  "state": "STATE_UNSPECIFIED",
  "email": "<string>",
  "title": "<string>",
  "userType": "USER_TYPE_UNSPECIFIED",
  "mfaEnabled": true,
  "mfaSecret": "<string>",
  "recoveryCodes": [
    "<string>"
  ],
  "phone": "<string>",
  "profile": {
    "lastLoginTime": "2023-11-07T05:31:56Z",
    "lastChangePasswordTime": "2023-11-07T05:31:56Z",
    "source": "<string>"
  },
  "groups": [
    "<string>"
  ]
}

Body

application/json
state
enum<string>

The lifecycle state of the user account.

Available options:
STATE_UNSPECIFIED,
ACTIVE,
DELETED
email
string

The email address of the user, used for login and notifications.

title
string

The display title or full name of the user.

userType
enum<string>

The type of user account.

Available options:
USER_TYPE_UNSPECIFIED,
USER,
SYSTEM_BOT,
SERVICE_ACCOUNT
password
string

The password for authentication. Only used during user creation or password updates.

serviceKey
string

The service key for service account authentication. Only used for service accounts.

mfaEnabled
boolean

The mfa_enabled flag means if the user has enabled MFA.

mfaSecret
string

The mfa_secret is the temporary secret using in two phase verification.

recoveryCodes
string[]

The recovery_codes is the temporary recovery codes using in two phase verification.

phone
string

Should be a valid E.164 compliant phone number. Could be empty.

profile
object

User profile metadata.

Response

OK

name
string

The name of the user. Format: users/{user}. {user} is a system-generated unique ID.

state
enum<string>

The lifecycle state of the user account.

Available options:
STATE_UNSPECIFIED,
ACTIVE,
DELETED
email
string

The email address of the user, used for login and notifications.

title
string

The display title or full name of the user.

userType
enum<string>

The type of user account.

Available options:
USER_TYPE_UNSPECIFIED,
USER,
SYSTEM_BOT,
SERVICE_ACCOUNT
mfaEnabled
boolean

The mfa_enabled flag means if the user has enabled MFA.

mfaSecret
string

The mfa_secret is the temporary secret using in two phase verification.

recoveryCodes
string[]

The recovery_codes is the temporary recovery codes using in two phase verification.

phone
string

Should be a valid E.164 compliant phone number. Could be empty.

profile
object

User profile metadata.

groups
string[]

The groups for the user. Format: groups/{email}