access

PUT /v1/orgs/{orgId}/members/{userId}/client-access

Limit a team member to named client accounts, or lift the limit.

All access endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

Authentication

Send an API key as a bearer token. The key must carry the members.role.assign permission; a key without it is refused with 403, not 404.

Where your organisation id goes

This endpoint takes your organisation id in the URL itself, as orgId. Substitute it into the path — there is no header or query parameter that will do instead.

Your organisation id is on the API keys screen in your dashboard, beside the key itself. It is the same id in every call you make.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X PUT https://api.zinndigital.com/v1/orgs/{orgId}/members/{userId}/client-access \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "limited": <boolean> }'

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

For a reseller or agency whose team includes contractors (ANS-147). Requires members.role.assign on the org; a limited member never holds it, so cannot lift their own limit or anyone else's. Refusals: 403 for your own access, 409 for an owner (an owner always reaches every client account), 400 for an id that is not a client account of this organisation, 404 for a non-member. Audit-logged as member.client_access.changed.

Parameters

NameTypeRequiredWhat it is
orgId (path)UuidYesOrganization ID (UUIDv7).
userId (path)UuidYesThe team member.

Request body

NameTypeRequiredWhat it is
limitedbooleanYesfalse lifts the limit (the member reaches every client account again). true limits them to client_org_ids; an empty list means the organisation only, never "no limit".
client_org_idsUuid[]NoClient accounts of this organisation (any depth below it).

Response

NameTypeRequiredWhat it is
user_idUuidYesUUIDv7 identifier — sortable by creation time.
limitedbooleanYes—
client_org_idsUuid[]YesThe named client accounts, sorted. Empty when not limited.
clientsobject[]YesThe named client accounts that still exist, with their names.

Errors this endpoint can return

401 · 403 · 404 · 409 · 422 · 429