Releasesv0.1.0
Api referenceEndpointsAdmin

Get one end user (instance admin, one tenant)

GET
/v1/admin/tenants/{tenant_id}/users/{id}

GET /v1/users/{id} (getUser) for the tenant of tenant_id, read with an instance admin key: the same parameters and the same answer as the tenant's own key gets. Read only. Recorded in the caller's audit log and, actor admin, in the tenant's. See docs/admin-api.md.

Authorization

tenantKey
headerAuthorizationBearer <token>

Tenant API key, ohs_sk_ + 43 base62 characters.

Path Parameters

tenant_id*string

The id of a tenant; any other value is a 404.

Formatuuid
id*string
Formatuuid

Header Parameters

Authorization*string

The tenant API key, as a bearer secret.

Response Body

The user.

application/json
  1. response
id*string
Formatuuid
external_ref*string|null
status*string
Value in"active""deleting"
created_at*string
Formatdate-time
curl -X GET 'http://localhost:8080/v1/admin/tenants/497f6eca-6276-4993-bfeb-53cbbbba6f08/users/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Authorization: Bearer ohs_sk_...'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "external_ref": "string",  "status": "active",  "created_at": "2019-08-24T14:15:22Z"}
Edit on GitHub