Global App Search SDK Functions
These SDK methods let you query users and user-generated data across your entire application. All functions require appId and are designed for admin-level operations.
getAllUsersFromApp
Fetch all users registered in your app with cursor-based pagination.
| Param | Type | Required | Description |
|---|---|---|---|
| limit | number | No | Number of users per page (default 20) |
| cursor | string | No | Pagination cursor for next page |
Ts
1// Get all users in your app (pagination supported)
2const res = await authix.getAllUsersFromApp({
3 limit: 20,
4 cursor: null,
5});
6
7console.log(res.data);
8console.log(res.hasMore, res.nextCursor);
9
10// Next page
11const next = await authix.getAllUsersFromApp({
12 limit: 20,
13 cursor: res.nextCursor,
14});searchInAllAppUsers
Search across all users using text query and structured filters.
| Param | Type | Required | Description |
|---|---|---|---|
| q | string | No | Free-text search query |
| keys | object | No | Structured filters (e.g. role, status) |
Ts
1// Search across all app users
2const res = await authix.searchInAllAppUsers({
3 q: "john",
4 keys: {
5 role: "admin",
6 isVerified: true,
7 },
8});
9
10console.log(res);getAllUsersDataFromApp
Fetch all user-generated data across the app (useful for analytics and admin dashboards).
| Param | Type | Required | Description |
|---|---|---|---|
| category | string | No | Filter data by category |
| limit | number | No | Number of records per page |
| cursor | string | No | Pagination cursor |
Ts
1// Fetch all users' data across the app
2const res = await authix.getAllUsersDataFromApp({
3 category: "orders",
4 limit: 20,
5});
6
7console.log(res.data);
8
9// Pagination
10if (res.hasMore) {
11 const next = await authix.getAllUsersDataFromApp({
12 category: "orders",
13 cursor: res.nextCursor,
14 });
15}searchInAllAppUsersData
Perform deep search inside all users’ data using category, query, and dynamic keys.
| Param | Type | Required | Description |
|---|---|---|---|
| category | string | No | Data category to search in |
| q | string | No | Free-text search query |
| keys | object | No | Dynamic filters (e.g. status, shopId) |
Ts
1// Deep search in all users' data
2const res = await authix.searchInAllAppUsersData({
3 category: "orders",
4 q: "pending",
5 keys: {
6 status: "active",
7 shopId: "12",
8 },
9});
10
11console.log(res);