List Users
Returns a paginated list of all users.
Request
GET /api/oauth/v2/resource/users
Header
| Header | Value |
|---|---|
Authorization | Bearer {access_token} |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
offset | integer | No | Start position (default: 0) |
limit | integer | No | Number of results (default: 50, max: 200) |
Required scope: users
Response
Success (200 OK)
json
{
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"title": "Dr.",
"firstName": "Maria",
"lastName": "Muster",
"abbreviation": "MM",
"sex": 1,
"email": "maria.muster@example.com",
"color": "#74AFAD",
"isDoctor": true,
"showBookingWeeks": 6,
"sort": 0,
"isBookable": true,
"tenancies": [
{
"id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
"name": "Ordination Muster",
"abbreviation": "OM",
"color": "#00adba"
}
]
}
],
"meta": {
"total": 5,
"offset": 0,
"limit": 50
}
}Response fields
| Field | Type | Description |
|---|---|---|
data | Array | List of users |
data[].id | string (UUID) | Unique user ID |
data[].title | string | null | Academic title (e.g. Dr.) |
data[].firstName | string | First name |
data[].lastName | string | Last name |
data[].abbreviation | string | null | Abbreviation |
data[].sex | integer | null | Sex (0 = male, 1 = female) |
data[].email | string | null | Email address |
data[].color | string | Color as hex code (e.g. #74AFAD) |
data[].isDoctor | boolean | Whether the user is a doctor |
data[].showBookingWeeks | integer | How many weeks ahead are bookable |
data[].sort | integer | Sort order |
data[].isBookable | boolean | Whether the user is bookable |
data[].tenancies | Array | Assigned tenants |
data[].tenancies[].id | string (UUID) | Tenant ID |
data[].tenancies[].name | string | Name of the tenant |
data[].tenancies[].abbreviation | string | Abbreviation |
data[].tenancies[].color | string | Color as hex code |
meta.total | integer | Total number of users |
meta.offset | integer | Current start position |
meta.limit | integer | Number of returned entries |
Note: The
idis returned as a UUID and is required for querying available slots and booking appointments.
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/users?offset=0&limit=50" \
-H "Authorization: Bearer {access_token}"Parameter
Zuerst Token anfordern
Possible errors
| Status | Code | Description |
|---|---|---|
| 401 | invalid_client | Invalid or missing access token |
| 403 | insufficient_scope | Scope users not present |