- NodeJS
- NodeJS (server-auth)
- Python
- Java
- REST API
- Rust
Querying users by identity token
Using identity tokens is the recommended way to query user information about authenticated users
in your backend. If you need user data about unauthenticated users, you can use the
_get
method by passing in a user’s DID.get
method to get a single user by their identity token passed from the client, to learn more about identity tokens, see identity tokens.Querying users by ID
To get a user by their Privy ID, call the.users()._get()
method on the PrivyClient
.Querying for all users
To get all users for your app, call the.users().list()
method on the PrivyClient
.Querying for users by account data
By email address
By email address
By phone number
By phone number
By wallet address
By wallet address
By smart wallet address
By smart wallet address
By custom auth ID
By custom auth ID
By Farcaster ID
By Farcaster ID
By Twitter subject
By Twitter subject
By Twitter username
By Twitter username
By Discord username
By Discord username
By Telegram User ID
By Telegram User ID
By Telegram username
By Telegram username
By GitHub username
By GitHub username