Skip to main content
QUERY
users(sortField: String, sortDirection: SortDirection, page: Int, perPage: Int, status: String, excludeIds: Boolean, searchValue: String, isActive: Boolean, requireUsername: Boolean, ids: [String], workspaceIds: [String], branchIds: [String], departmentIds: [String], availability: UserChatStatus): UserListResponse

Arguments

sortField
String

Field to sort by.

sortDirection

Sort direction for sortField.

page
Int

1-based page index. See Pagination.

perPage
Int

Page size. See Pagination.

status
String

Filter by account status.

excludeIds
Boolean

When true, ids excludes instead of includes.

searchValue
String

Case-insensitive partial match on name, username, or email.

isActive
Boolean

Filter by active/inactive account state.

requireUsername
Boolean

When true, only return users that have a username set.

ids
[String]

Restrict to these user ids.

workspaceIds
[String]

Restrict to users in these workspaces.

branchIds
[String]

Restrict to users in these branches.

departmentIds
[String]

Restrict to users in these departments.

availability

Filter by presence/chat status. See UserChatStatus.

data

User rows for the current page.

pagination

Standard pagination metadata: totalCount, currentPage, totalPages, hasNextPage, hasPreviousPage, perPage.

Query
Response
آخر تعديل في ١١ أغسطس ٢٠٢٦