Skip to main content
Module

x/appwrite/mod.ts>Users

[READ-ONLY] Official Appwrite Deno SDK 🦕
Go to Latest
class Users
extends Service
Re-export
import { Users } from "https://deno.land/x/appwrite@0.1.1/mod.ts";

Methods

create(
email: string,
password: string,
name?: string,
): Promise<string>

Create User

Create a new user.

deleteSession(userId: string, sessionId: string): Promise<string>

Delete User Session

Delete a user sessions by its unique ID.

deleteSessions(userId: string): Promise<string>

Delete User Sessions

Delete all user's sessions by using the user's unique ID.

deleteUser(userId: string): Promise<string>

Delete User

Delete a user by its unique ID.

get(userId: string): Promise<string>

Get User

Get a user by its unique ID.

getLogs(userId: string): Promise<string>

Get User Logs

Get a user activity logs list by its unique ID.

getPrefs(userId: string): Promise<string>

Get User Preferences

Get the user preferences by its unique ID.

getSessions(userId: string): Promise<string>

Get User Sessions

Get the user sessions list by its unique ID.

list(
search?: string,
limit?: number,
offset?: number,
orderType?: string,
): Promise<string>

List Users

Get a list of all the project's users. You can use the query params to filter your results.

updatePrefs(userId: string, prefs: DocumentData): Promise<string>

Update User Preferences

Update the user preferences by its unique ID. You can pass only the specific settings you wish to update.

updateStatus(userId: string, status: string): Promise<string>

Update User Status

Update the user status by its unique ID.