Skip to main content
QUERY
departments(ids: [String], excludeIds: Boolean, perPage: Int, page: Int, searchValue: String, status: String, onlyFirstLevel: Boolean, parentId: String, withoutUserFilter: Boolean): DepartmentListQueryResponse

Arguments

ids
[String]

Restrict to these department ids.

excludeIds
Boolean

When true, ids excludes instead of includes.

perPage
Int

Page size. See Pagination.

page
Int

1-based page index. See Pagination.

searchValue
String

Case-insensitive partial match on title.

status
String

Filter by lifecycle status.

onlyFirstLevel
Boolean

When true, only return top-level departments (no parentId).

parentId
String

Restrict to direct children of this department id.

withoutUserFilter
Boolean

When true, skip filtering departments by the caller's user scope.

Department rows for the current page.

pagination

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

totalUsersCount
Int

Total number of users across all matching departments.

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