Path Parameters
The user id.
Query Parameters
The list of fields to update.
The otp_code is used to verify the user's identity by MFA.
The regenerate_temp_mfa_secret flag means to regenerate temporary MFA secret for user. This is used for MFA setup. The temporary MFA secret and recovery codes will be returned in the response.
The regenerate_recovery_codes flag means to regenerate recovery codes for user.
If set to true, and the user is not found, a new user will be created.
In this situation, update_mask
is ignored.
Body
STATE_UNSPECIFIED
, ACTIVE
, DELETED
USER_TYPE_UNSPECIFIED
, USER
, SYSTEM_BOT
, SERVICE_ACCOUNT
The mfa_enabled flag means if the user has enabled MFA.
The mfa_secret is the temporary secret using in two phase verification.
The recovery_codes is the temporary recovery codes using in two phase verification.
Should be a valid E.164 compliant phone number. Could be empty.
Response
OK
The name of the user. Format: users/{user}. {user} is a system-generated unique ID.
STATE_UNSPECIFIED
, ACTIVE
, DELETED
USER_TYPE_UNSPECIFIED
, USER
, SYSTEM_BOT
, SERVICE_ACCOUNT
The mfa_enabled flag means if the user has enabled MFA.
The mfa_secret is the temporary secret using in two phase verification.
The recovery_codes is the temporary recovery codes using in two phase verification.
Should be a valid E.164 compliant phone number. Could be empty.
The groups for the user. Format: groups/{email}