User management
Fetch users
Retrieves users
GET
Fetch users
Response fields
Each user in the response contains a fixed set of standard fields plus any custom user attributes configured for your Qobra account. Standard fields (always returned):id— user ID (ObjectId)email— user emailname— user namestatus— one ofactive,archived,inactive,pendingrole— user rolecurrency— user currency codecalculation_currency— currency used for commission calculations
<user-attribute-api-key>_currency field alongside the value.
Fields such as
business_unit, team, region, or manager are not
standard fields on this endpoint. If they exist in your account, they are
custom user attributes and appear under the API key you assigned to them in
Settings > User attributes.Discover your custom user attribute API keys
Custom user attributes are defined per Qobra account, so their API keys are specific to your organization.- Open Settings > User attributes in the Qobra app.
- Locate the attribute you want (for example, a business unit attribute).
- Copy its API key. This is the exact key that appears in the
GET /v1/usersresponse for every user that has a value for that attribute.
Converting a local user attribute to an HRIS-synced one replaces its API key
with the HRIS field key (for example,
job_title). After the conversion, the
attribute appears under the new key in the response. See
Sync an existing user attribute from your HRIS.Pagination
This endpoint is paginated using parameters offset and limit The “next” key in the response allow you to easily follow pagination to get the next batch of recordsVariable api keys
This endpoint is based on dynamic fields. This mean that all annotations that look like<variable-key>, will have to or will be replaced by their
actual API keys.