システムユーザー一覧の検索
システムユーザーの情報を検索し、一覧で返却する
📬 リクエスト
Section titled “📬 リクエスト”GET {resource_api_url}/system-users
リクエストヘッダ
Section titled “リクエストヘッダ”| キー | 値 |
|---|---|
| Authorization | Bearer {アクセストークン} |
パスパラメータ
Section titled “パスパラメータ”なし
クエリパラメータ
Section titled “クエリパラメータ”| パラメータ | 形式 | 必須 | 説明 | 値の例 |
|---|---|---|---|---|
| fields | 文字列 | YES | 返却対象のフィールド名(カンマ区切り) | id, user_name, is_active |
| filter | filterパラメータオブジェクト | NO | 検索条件 | { "and": [ { "field": "industry", "operator": "eq", "value": "public_admin" } ] } |
| order_by | オブジェクトの配列 | NO | 検索結果のソート条件 | [{ field: "id", direction: "asc" }] |
| limit | 整数値 | NO | 1回のリクエストで取得する最大システムユーザー数 | 100 |
| offset | 整数値 | NO | 取得開始位置(スキップするシステムユーザー数) | 0 |
「order_by」パラメータの構成要素
Section titled “「order_by」パラメータの構成要素”| フィールド | 形式 | 必須 | 説明 | 値の例 |
|---|---|---|---|---|
| field | 文字列 | YES | ソート対象のフィールド名 | id |
| direction |
| NO | ソート方向(省略時は昇順扱い) | asc |
✨ 成功レスポンス
Section titled “✨ 成功レスポンス”ステータスコード
Section titled “ステータスコード”200 : OK
レスポンスヘッダ
Section titled “レスポンスヘッダ”| キー | 値 |
|---|---|
| Content-Type | application/json |
レスポンスボディ
Section titled “レスポンスボディ”| フィールド | 形式 | 必須 | 説明 | 値の例 |
|---|---|---|---|---|
| has_next_page | 真偽値 | YES | 検索結果に対して、次ページが存在するかどうか | true |
| total_size | 整数値 | YES | 検索条件に合致するシステムユーザー総数 | 371 |
| data | 単一システムユーザーの取得 - レスポンスボディと同内容の配列 | YES | 検索結果 | [ { "id": "user-00000001", "user_name": "yosuke-tahara@example.com", "first_name": "陽介", ... }, { "id": "user-00000002", "user_name": "akemi-matsushita@example.com", "first_name": "明美", ... }, ... ] |
レスポンスボディのサンプル
Section titled “レスポンスボディのサンプル”💬 具体的な要求事項
Section titled “💬 具体的な要求事項”- 基本的な検索要件については、レコード一覧の検索を参考にし、同等の実装を行ってください
- クエリパラメータ内で使用されるフィールドは、 単一システムユーザーの取得 - レスポンスボディに記載のフィールドが対象となります
- UPWARDを使用する可能性がないユーザーは返却対象から除外しても構いません
- これは「現在UPWARDを利用中のユーザーのみを返却する」という意味ではありません
- 今後UPWARDの利用が見込まれるユーザーは対象に含めてください