Skip to content

List a group's members

GET
/api/tenants/{tenant}/sync/{name}/members
curl --request GET \
--url http://127.0.0.1:9090/api/tenants/acme/sync/hq/members \
--header 'Authorization: Basic <credentials>' \
--header 'X-Request-Id: 4f1c2b0e-8a7d-4c51-9e2f-3a6b8d0c1e7f'

Each member of the group, then each device that left it and is still remembered (left_at set). For each: its labels, what it takes and reports as its package declares it (declaration), its settings class, its rows counted by domain and state, an error one of its rows has, whether intake from it is paused (the bulk-delete guard) and when it last took inventory, and the user id changes under way, failed or refused on it. A device that left is remembered until it confirms the deletes it missed (deletes_waiting), or until you forget it.

tenant
required
string

The tenant’s id.

Example
acme
name
required
string

The sync group’s id.

Example
hq
X-Request-Id
string
<= 128 characters /^[A-Za-z0-9._:-]+$/

An id to follow the request by: answered back in X-Request-Id, and in the log, the audit trail and the events the request causes. 1 to 128 letters, digits, -, _, . or :; anything else is replaced by a new id.

Example
4f1c2b0e-8a7d-4c51-9e2f-3a6b8d0c1e7f

The group’s members, then the devices that left it.

Media typeapplication/json
Array<object>

A member of a sync group, or a device that was one and left.

object
counts

Its rows by domain, then by state.

object
declaration

What the device takes and reports, as its package declares it, resolved for what the device says about itself.

object
deletes_waiting

One that left: how many deletes (tombstones) still wait for it to confirm them. Null for a member.

integer | null
device

The member’s device id.

string
""
endpoint

The member’s endpoint.

string
""
id_changes

User id changes under way on it, failed or refused.

Array<object>
default:

A member’s part in a user id change.

object
device

The member’s device id.

string
""
endpoint

The member’s endpoint.

string
""
error

Why it failed or was refused; null otherwise.

string | null
new_user_id

The id the person has now. At most 128 characters: a user id is indexed, and a longer one is refused (400).

string
""
old_user_id

The id the person had.

string
""
started_at

When the change started on the member.

string format: date-time
default: 1970-01-01T00:00:00Z
state

Running, done, failed (the old user is kept; retry carries on from the step), refused (it could lose templates; retry to go ahead).

string
""
step

Where it is: settle, create, verify_new, delete_old, verify_old (a member that renames: delete_old is the rename).

string
""
step_at

When it reached its step.

string format: date-time
default: 1970-01-01T00:00:00Z
inventory

The action that makes it upload every user, or “none”: then what it holds is known only from what it was sent.

string
""
inventory_at

When it last took inventory (uploaded every user); null when it has not taken one since it joined or was last sent everything again.

string | null format: date-time
labels

Its labels, as placement last saw them: its endpoint’s, with its own over them.

object
last_error

The error of one of its rows that has one; null when none has.

string | null
left_at

When it stopped being a member; null for a member. One that left is remembered until it confirms the deletes it missed, or is forgotten (DELETE .../members/{endpoint}/{device}).

string | null format: date-time
paused

Why what it reports is not taken (the bulk-delete guard), if so; null when it is not paused.

string | null
settings_class

Its settings class: devices of the same class share setting values. Null when it takes no settings.

string | null
Example
[
{
"counts": {
"people": {
"in_sync": 118,
"pending": 2
},
"settings": {
"in_sync": 4
}
},
"declaration": {
"people": {
"accept": {
"cards": {
"formats": [],
"max": 1
},
"credentials": {
"fingerprint": [
"zk:fingerprint:10"
]
},
"delete_leaves_bytes": false,
"fields": {
"enabled": {},
"name": {
"max_length": 24
},
"role": {}
},
"keypad_pin": {
"max_length": 8
},
"rename": false,
"user_id": {
"pattern": "^[0-9]{1,9}$"
}
},
"report": {
"biometric": true,
"deleted": true,
"inventory": "query_users",
"photo": false,
"user": true
}
},
"settings": {
"catalog": {
"volume": {
"max": 100,
"min": 0,
"reboot": false,
"sensitive": false,
"standard": "volume",
"type": "integer"
}
},
"class": "[email protected]",
"report": true
}
},
"deletes_waiting": null,
"device": "CG0001",
"endpoint": "office",
"id_changes": [],
"inventory": "query_users",
"inventory_at": "2026-01-15T08:00:00Z",
"labels": {
"floor": "1",
"site": "office"
},
"last_error": null,
"left_at": null,
"paused": null,
"settings_class": "[email protected]"
}
]

A login is configured and the request carries neither it nor an API token, or it carries a wrong login (WWW-Authenticate: Basic realm="Hour Advantage", no body). Or the request carries an API token that is not one (revoked, or never made), login or not (WWW-Authenticate: Bearer realm="Hour Advantage", error="invalid_token", the body the API token was refused).

Media typetext/plain
string
Example
the API token was refused
WWW-Authenticate
string

The scheme to answer with: Basic realm="Hour Advantage", or for a refused token Bearer realm="Hour Advantage", error="invalid_token".

The Host header does not name a loopback address while one is required (no login configured, or the API listens on loopback), or the Origin header does not match the Host: {"error": ...} says which. Or no login is configured and the request carries Forwarded, X-Forwarded-For or X-Real-IP (a proxy forwarded it): the plain text body says so. Or an API token asks for a route its scope does not reach: the plain text body says so.

A refusal, and why.

object
error
required

Why the request was refused, in a sentence.

string
fields

For a request whose parameters do not fit (422): what is wrong with each field. Absent otherwise.

Array<object>

What is wrong with one field of a request.

object
field
required

The parameter, as the request names it (values.volume for a setting inside values).

string
message
required

What is wrong with it.

string
request_id

The request’s id, as its X-Request-Id header gives it: what to quote when asking what happened to it.

string | null
Example
{
"error": "the Host must name this machine (localhost or a loopback address); an API reached by other names needs the admin login"
}

No sync group has that id.

Media typeapplication/json

A refusal, and why.

object
error
required

Why the request was refused, in a sentence.

string
fields

For a request whose parameters do not fit (422): what is wrong with each field. Absent otherwise.

Array<object>

What is wrong with one field of a request.

object
field
required

The parameter, as the request names it (values.volume for a setting inside values).

string
message
required

What is wrong with it.

string
request_id

The request’s id, as its X-Request-Id header gives it: what to quote when asking what happened to it.

string | null
Example
{
"error": "unknown sync group 'hq'"
}

More than 2 admin logins are being checked at once: send the request again after the Retry-After seconds. A request carrying the login that checked out last, or an API token, is not held up.

Media typetext/plain
string
Example
too many logins at once; try again
Retry-After
integer

Seconds to wait: 1.

Something went wrong in the gateway that asking again will not put right by itself; error says what.

Media typeapplication/json

A refusal, and why.

object
error
required

Why the request was refused, in a sentence.

string
fields

For a request whose parameters do not fit (422): what is wrong with each field. Absent otherwise.

Array<object>

What is wrong with one field of a request.

object
field
required

The parameter, as the request names it (values.volume for a setting inside values).

string
message
required

What is wrong with it.

string
request_id

The request’s id, as its X-Request-Id header gives it: what to quote when asking what happened to it.

string | null
Example
{
"error": "db error: ERROR: permission denied for table settings"
}

The database cannot be used right now (not reachable, too busy, no connection free in time), or the instance is still starting: send the same request again shortly. An API token that cannot be checked for the same reason is answered 503 in plain text (the API token cannot be checked right now; try again shortly).

Media typeapplication/json

A refusal, and why.

object
error
required

Why the request was refused, in a sentence.

string
fields

For a request whose parameters do not fit (422): what is wrong with each field. Absent otherwise.

Array<object>

What is wrong with one field of a request.

object
field
required

The parameter, as the request names it (values.volume for a setting inside values).

string
message
required

What is wrong with it.

string
request_id

The request’s id, as its X-Request-Id header gives it: what to quote when asking what happened to it.

string | null
Example
{
"error": "the gateway is starting; try again shortly"
}