/filters/users/organizations - Get available organizations for filtering users

GET /filters/users/organizations

Get list of organizations available for filtering users (requires read:users permission). Returns all organizations the user can access based on RBAC hierarchy. Unlike /filters/systems/organizations, this returns all accessible organizations regardless of whether they have systems associated.

Responses

  • 200 application/json

    Organizations retrieved successfully

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object
      Hide data attribute Show data attribute object
      • organizations array[object]
        Hide organizations attributes Show organizations attributes object
        • id string

          Organization Logto ID

        • name string

          Organization name

        • type string

          Organization type

          Values are distributor, reseller, or customer.

  • 401 application/json

    Unauthorized - invalid or missing token

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
  • 403 application/json

    Forbidden - insufficient permissions

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
GET /filters/users/organizations
curl \
 --request GET 'https://api.your-domain.com/api/filters/users/organizations' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "code": 200,
  "message": "organization filters retrieved successfully",
  "data": {
    "organizations": [
      {
        "id": "org_abc123",
        "name": "ACME Corp",
        "type": "customer"
      }
    ]
  }
}
Response examples (401)
{
  "code": 401,
  "message": "invalid token",
  "data": {}
}
Response examples (403)
{
  "code": 403,
  "message": "insufficient permissions",
  "data": {}
}