Skip to content

Product documentation

UserDirectory

The UserDirectory resource.

UserDirectory

The UserDirectory resource.

Base URL: https://api.stg.thoryn.org

Operations

MethodPathSummaryScopes
GET/api/v1/directory/usersUser Directory Listtenant:users.read
POST/api/v1/directory/usersUser Directory Createtenant:users.write
GET/api/v1/directory/users/external_id/{externalId}User Directory Get By External Idtenant:users.read
GET/api/v1/directory/users/{id}User Directory Gettenant:users.read
PUT/api/v1/directory/users/{id}User Directory Puttenant:users.write
PATCH/api/v1/directory/users/{id}User Directory Patchtenant:users.write
DELETE/api/v1/directory/users/{id}User Directory Deletetenant:users.write
GET/api/v1/directory/users/{id}/organizationsUser Directory List Organizationstenant:users.read

Operation details

GET /api/v1/directory/users

User Directory List

  • Operation ID: userDirectoryList
  • Required scopes: tenant:users.read

Parameters:

NameInRequiredTypeDescription
emailquerynostring
organizationIdquerynostring
limitquerynointeger
cursorquerynostring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

POST /api/v1/directory/users

User Directory Create

  • Operation ID: userDirectoryCreate
  • Required scopes: tenant:users.write

Request body (required): application/jsonCreateUserRequest

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

GET /api/v1/directory/users/external_id/{externalId}

User Directory Get By External Id

  • Operation ID: userDirectoryGetByExternalId
  • Required scopes: tenant:users.read

Parameters:

NameInRequiredTypeDescription
externalIdpathyesstring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

GET /api/v1/directory/users/{id}

User Directory Get

  • Operation ID: userDirectoryGet
  • Required scopes: tenant:users.read

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

PUT /api/v1/directory/users/{id}

User Directory Put

  • Operation ID: userDirectoryPut
  • Required scopes: tenant:users.write

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Request body (required): application/jsonUpdateUserRequest

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

PATCH /api/v1/directory/users/{id}

User Directory Patch

  • Operation ID: userDirectoryPatch
  • Required scopes: tenant:users.write

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Request body (required): application/jsonUpdateUserRequest

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

DELETE /api/v1/directory/users/{id}

User Directory Delete

  • Operation ID: userDirectoryDelete
  • Required scopes: tenant:users.write

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

GET /api/v1/directory/users/{id}/organizations

User Directory List Organizations

  • Operation ID: userDirectoryListOrganizations
  • Required scopes: tenant:users.read

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Responses:

StatusDescriptionBody
200OKUserOrganizationsResponse
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)