Members of the organisation
GET
/api/users
const url = 'https://app.dycrypt.com/o/acme/api/users';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.dycrypt.com/o/acme/api/users \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The members.
Media typeapplication/json
Array<object>
A member of your DYCRYPT organisation.
object
id
required
integer format: int64
username
required
string
displayName
string | null
email
string | null format: email
role
required
What a person may do. A token is measured against its scopes instead, and never inherits the role of whoever created it.
string
active
required
boolean
createdAt
string format: date-time
lastLoginAt
string | null format: date-time
Example
[ { "role": "ORG_ADMIN" }]No credential, or one that no longer resolves — revoked, expired, deleted. Replace it.
Media typeapplication/json
Every failure in this API has this shape and no other.
object
error
required
string
Example
{ "error": "this token does not have licenses:write"}Authenticated, but not allowed: a missing scope, a read-only role, a plan limit reached, or a credential used under another organisation’s slug. The right credential doing something it may not do.
Media typeapplication/json
Every failure in this API has this shape and no other.
object
error
required
string
Example
{ "error": "this token does not have licenses:write"}