Filtering Users

This step shows how to filter users

Available parameters:

Parameter
Type
Description

name

string

Name of the user

surname

string

Surname of the user

email

string

Email of the user

username

string

Username of the user

user_id

string

GUID of the user

role

string

Role of the user (see)

mobile

string

Mobile of the user

page_size

integer

Page size

page_number

integer

Page number

If you like to see all users belonging to your account, you can achieve this by not sending any parameters to the request.

Example request:

curl --location --request GET 'https://<DOMAIN>/xapi/user' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: x-www-form-urlencoded' \
--data-urlencode 'name=john' \
--data-urlencode 'username=doe'

Example response:

[
    {
        "user_id": "<USER_ID>",
        "name": "john",
        "surname": "Doe",
        "username": "johndoe",
        "email": "[email protected]",
        "role": "u",
        "mobile": "",
        "login_allowed": true,
        "status": 1,
        "lang": "tr-TR",
        "timezone": null,
        "expires_at": null,
        "creation_date": "2024-08-01T00:45:03.8888474+00:00",
        "updating_date": null
    }
]

Last updated

Was this helpful?