Skip to main content

Search users (POST)

Log in to add to favourites
POST/api/security/users/search

Responses

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

Examples

Get the first page of 50 users that contain the word tyler in the username or email, ordered by created date descending

HTTP
POST: /api/security/users/search

{
    "pageIndex": 0,
    "pageSize": 50,
    "where": [
        {
            "or": [
                {
                    "field": "username",
                    "contains": "tyler"
                },
                {
                    "field": "Email",
                    "contains": "tyler"
                }
            ]
        }
    ],
    "orderBy": [
        {
            "desc": "created"
        }
    ]
}

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