User data to create a new user. All properties are optional.
Name | Type | Description | Notes |
---|---|---|---|
primary_phone | str | Primary phone number for the user. It should be unique across all users. | [optional] |
primary_email | str | Primary email address for the user. It should be unique across all users. | [optional] |
username | str | Username for the user. It should be unique across all users. | [optional] |
password | str | Plain text password for the user. | [optional] |
password_digest | str | 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 value should be generated with one of the supported algorithms. The algorithm can be specified using the `passwordAlgorithm` property. | [optional] |
password_algorithm | str | The hash algorithm used for the password. It should be one of the supported algorithms: argon2, md5, sha1, sha256. Should the encryption algorithm differ from argon2, it will automatically be upgraded to argon2 upon the user's next sign-in. | [optional] |
name | str | [optional] | |
avatar | UpdateUserRequestAvatar | [optional] | |
custom_data | object | arbitrary | [optional] |
profile | GetJwtCustomizer200ResponseOneOfContextSampleUserProfile | [optional] |
from py_logto.models.create_user_request import CreateUserRequest
# TODO update the JSON string below
json = "{}"
# create an instance of CreateUserRequest from a JSON string
create_user_request_instance = CreateUserRequest.from_json(json)
# print the JSON string representation of the object
print(CreateUserRequest.to_json())
# convert the object into a dict
create_user_request_dict = create_user_request_instance.to_dict()
# create an instance of CreateUserRequest from a dict
create_user_request_from_dict = CreateUserRequest.from_dict(create_user_request_dict)