Search users

distru-search-usersRead

Searches Distru users — the caller's teammates within their company, e.g. to find who owns an order or a task.

Inputs

Every tool also takes the common inputs.

FieldTypeRequiredDescription
limitintegerNoDefault: 10
cursorstringNonextCursor of the previous call; keep the other arguments unchanged.
idsstring[]No
searchstringNoCase-insensitive substring of full name. Ranked by similarity; sortBy ignored.
ownerAssignableEntityTypeenum
ASSEMBLYBATCHCREDITINVOICEMENUORDERPRODUCTPURCHASE
NoOnly users the caller may assign as owner of this entity type, per team visibility. ORDER = sales order.
sortByobjectNoDefault UPDATED_AT DESC. Ignored when search is set.
sortBy.directionenum
ASCDESC
Yes
sortBy.fieldenum
FULL_NAMEINSERTED_ATUPDATED_AT
Yes

Output

Presence on a nested field assumes its parent exists.

FieldTypePresence
hasMorebooleanAlways
nextCursorstringCan be absent
totalCountintegerCan be absent
itemsobject[]Always
items[].idstringAlways
items[].emailstringAlways
items[].profileobjectAlways
items[].profile.fullNamestringAlways
items[].profile.firstNamestringAlways
items[].profile.lastNamestringCan be null
items[].profile.initialsstringAlways
What the AI reads

Searches Distru users — the caller's teammates within their company, e.g. to find who owns an order or a task. For the caller themself, use distru-get-me.