Herald
OpenapiExt

List users in a realm

Returns a paginated list of users in the specified realm. Default page_size is 20, maximum is 100. # Authentication Requires valid API Key via X-API-Key header # Authorization The caller must have `users.view` permission in the target realm.

GET
/api/ext/realms/{realmId}/users

Returns a paginated list of users in the specified realm. Default page_size is 20, maximum is 100.

Authentication

Requires valid API Key via X-API-Key header

Authorization

The caller must have users.view permission in the target realm.

Authorization

api_key
headerX-API-Key<token>

Client-app API key (third-party external API).

Path Parameters

realmId*string

Realm ID

Query Parameters

page?integer

Page number (1-based, default 1)

Formatint64
Range0 <= value
pageSize?integer

Page size (default 20, max 100)

Formatint64
Range0 <= value

Response Body

Users listed successfully

application/json
  1. response

Paginated list of users in a realm

items*array<>
page*integer
Formatint64
Range0 <= value
pageSize*integer
Formatint64
Range0 <= value
total*integer
Formatint64
Example Request
curl -X GET 'https://example.com/api/ext/realms/string/users'
Example Response
{
  "items": [
    {
      "createdAt": "string",
      "email": "string",
      "id": "string",
      "nickname": "string",
      "status": 0
    }
  ],
  "page": 0,
  "pageSize": 0,
  "total": 0
}