Skip to main content

Search users (GET)

Log in to add to favourites
GET/api/security/users/search?order={order}&where={where}&orderBy={orderBy}&pageIndex={pageIndex}&pageSize={pageSize}

Parameters

NameParameter typeTypeFormatDescription
pageIndexquerynumberintegerThe index of the page.
pageSizequerynumberintegerThe number of results per page. The default is 25.
orderByquerystring-An array of order by objects
wherequerystring- An expression array of query operator objects

Responses

HTTP status codeReasonModel
200SuccessUser
403ForbiddenError
500Internal server errorError
401UnauthorizedError

Examples

Get the first page of 5 users that contain the word tyler in the username or email

HTTP
GET: /api/security/users?pageSize=5&where=[{"or":[{"field":"Username","contains":"tyler"},{"field":"Email","contains":"tyler"}]}]

Remarks

Permissions

Member of System Administrators.

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request