Organization

List organization users

Changed on

Returns a paginated list of users in the Factory organization. Role and status are only included when includeRole=true or includeStatus=true (one shared WorkOS membership read, skipped when neither flag is true), and directory-synced groups only when includeGroups=true (the Firestore profile read is skipped without it).

get/api/v0/organization/users

Request

  • Base URL
    https://api.factory.ai
  • Auth
    HTTP bearer

Query parameters

limit, integer

Maximum number of items to return (1-100)

cursor, string

Cursor for pagination

includeRole, boolean

Include each user membership role in the response; the WorkOS membership roster is read when either includeRole or includeStatus is true

includeStatus, boolean

Include each user membership status in the response; the WorkOS membership roster is read when either includeRole or includeStatus is true

includeGroups, boolean

Include each user directory-synced group IDs in the response; otherwise the Firestore user profiles are not read

Headers

X-Factory-Org-Id, string

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Response

Response for status 200

ListOrganizationUsers200ResponseBody required
users, object[] required

List of users

pagination, object required

Changes

    • info

      added the new optional query request parameter includeGroups

    • info

      added the new optional query request parameter includeRole

    • info

      added the new optional query request parameter includeStatus