import { Users } from "https://deno.land/x/appwrite@9.0.0/mod.ts";
Constructors
Methods
Create User
Create a new user.
Create User with Argon2 Password
Create a new user. Password provided must be hashed with the Argon2 algorithm. Use the POST /users endpoint to create users with a plain text password.
Create User with Bcrypt Password
Create a new user. Password provided must be hashed with the Bcrypt algorithm. Use the POST /users endpoint to create users with a plain text password.
Create User with MD5 Password
Create a new user. Password provided must be hashed with the MD5 algorithm. Use the POST /users endpoint to create users with a plain text password.
Create User with PHPass Password
Create a new user. Password provided must be hashed with the PHPass algorithm. Use the POST /users endpoint to create users with a plain text password.
Create User with Scrypt Modified Password
Create a new user. Password provided must be hashed with the Scrypt Modified algorithm. Use the POST /users endpoint to create users with a plain text password.
Create User with Scrypt Password
Create a new user. Password provided must be hashed with the Scrypt algorithm. Use the POST /users endpoint to create users with a plain text password.
Create User with SHA Password
Create a new user. Password provided must be hashed with the SHA algorithm. Use the POST /users endpoint to create users with a plain text password.
Delete User
Delete a user by its unique ID, thereby releasing it's ID. Since ID is released and can be reused, all user-related resources like documents or storage files should be deleted before user deletion. If you want to keep ID reserved, use the updateStatus endpoint instead.
Delete Identity
Delete an identity by its unique ID.
Delete User Session
Delete a user sessions by its unique ID.
Delete User Sessions
Delete all user's sessions by using the user's unique ID.
Get User
Get a user by its unique ID.
Get User Preferences
Get the user preferences by its unique ID.
List Users
Get a list of all the project's users. You can use the query params to filter your results.
List Identities
Get identities for all users.
List User Logs
Get the user activity logs list by its unique ID.
List User Memberships
Get the user membership list by its unique ID.
List User Sessions
Get the user sessions list by its unique ID.
Update Email
Update the user email by its unique ID.
Update Email Verification
Update the user email verification status by its unique ID.
Update User Labels
Update the user labels by its unique ID.
Labels can be used to grant access to resources. While teams are a way for user's to share access to a resource, labels can be defined by the developer to grant access without an invitation. See the Permissions docs for more info.
Update Name
Update the user name by its unique ID.
Update Password
Update the user password by its unique ID.
Update Phone
Update the user phone by its unique ID.
Update Phone Verification
Update the user phone verification status by its unique ID.
Update User Preferences
Update the user preferences by its unique ID. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.
Update User Status
Update the user status by its unique ID. Use this endpoint as an alternative to deleting a user if you want to keep user's ID reserved.