Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 103 KB

UpdateUserRequestBody.md

File metadata and controls

32 lines (29 loc) · 103 KB

UpdateUserRequestBody

Fields

Field Type Required Description
primaryEmailAddressId ?string The ID of the email address to set as primary.
It must be verified, and present on the current user.
notifyPrimaryEmailAddressChanged ?bool If set to true, the user will be notified that their primary email address has changed.
By default, no notification is sent.
primaryPhoneNumberId ?string The ID of the phone number to set as primary.
It must be verified, and present on the current user.
primaryWeb3WalletId ?string The ID of the web3 wallets to set as primary.
It must be verified, and present on the current user.
passwordDigest ?string In case you already have the password digests and not the passwords, you can use them for the newly created user via this property.
The digests should be generated with one of the supported algorithms.
The hashing algorithm can be specified using the password_hasher property.
passwordHasher ?string The hashing algorithm that was used to generate the password digest.

The algorithms we support at the moment are bcrypt, bcrypt_sha256_django, md5, pbkdf2_sha1, pbkdf2_sha256, pbkdf2_sha256_django,
phpass, scrypt_firebase,
scrypt_werkzeug, sha256,
and the argon2 variants: argon2i and argon2id.

Each of the supported hashers expects the incoming digest to be in a particular format. See the Clerk docs for more information.
totpSecret ?string In case TOTP is configured on the instance, you can provide the secret to enable it on the specific user without the need to reset it.
Please note that currently the supported options are:
* Period: 30 seconds
* Code length: 6 digits
* Algorithm: SHA1
backupCodes array<string> If Backup Codes are configured on the instance, you can provide them to enable it on the specific user without the need to reset them.
You must provide the backup codes in plain format or the corresponding bcrypt digest.
publicMetadata array<string, mixed> Metadata saved on the user, that is visible to both your Frontend and Backend APIs
privateMetadata array<string, mixed> Metadata saved on the user, that is only visible to your Backend API
unsafeMetadata array<string, mixed> Metadata saved on the user, that can be updated from both the Frontend and Backend APIs.
Note: Since this data can be modified from the frontend, it is not guaranteed to be safe.
createdAt ?string A custom date/time denoting when the user signed up to the application, specified in RFC3339 format (e.g. 2012-10-20T07:15:20.902Z).
externalId ?string The ID of the user as used in your external systems or your previous authentication solution.
Must be unique across your instance.
firstName ?string The first name to assign to the user
lastName ?string The last name to assign to the user
username ?string The username to give to the user.
It must be unique across your instance.
profileImageId ?string The ID of the image to set as the user's profile image
password ?string The plaintext password to give the user.
Must be at least 8 characters long, and can not be in any list of hacked passwords.
skipPasswordChecks ?bool Set it to true if you're updating the user's password and want to skip any password policy settings check. This parameter can only be used when providing a password.
signOutOfOtherSessions ?bool Set to true to sign out the user from all their active sessions once their password is updated. This parameter can only be used when providing a password.
deleteSelfEnabled ?bool If true, the user can delete themselves with the Frontend API.
createOrganizationEnabled ?bool If true, the user can create organizations with the Frontend API.
legalAcceptedAt ?string A custom timestamps denoting when the user accepted legal requirements, specified in RFC3339 format (e.g. 2012-10-20T07:15:20.902Z).
skipLegalChecks ?bool When set to true all legal checks are skipped.
It is not recommended to skip legal checks unless you are migrating a user to Clerk.
createOrganizationsLimit ?int The maximum number of organizations the user can create. 0 means unlimited.