POST
/
v1
/
users
/
{user}
:undelete
{
  "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>"
  ]
}

Path Parameters

user
string
required

The user id.

Body

application/json
name
string
required

The name of the deleted user. Format: users/{user}

Response

OK

name
string

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

state
enum<string>
Available options:
STATE_UNSPECIFIED,
ACTIVE,
DELETED
email
string
title
string
userType
enum<string>
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
groups
string[]

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