TIS Training API Documentation
  • Welcome!
  • Quick Start
  • Managing Users
  • Single Sign On (SSO)
    • General Options
    • Role and Group Mappings
    • Connection Types
      • Microsoft Entra ID (Formerly Azure AD)
      • Google Workspace
      • OpenID Connect (OIDC)
      • SAML (Security Assertion Markup Language)
  • SCORM Packages
  • Webhooks
  • API Reference
    • Users
      • 🔵GET users
      • 🔵GET users/seats
      • 🟢POST users
      • 🟠PUT users
      • 🟢POST users/password
      • 🟡PATCH users/enable
      • 🟡PATCH users/disable
      • 🔴DELETE users
    • Results
      • 🔵GET results
      • 🔵GET results/group
    • Groups
      • 🔵GET groups
      • 🟢POST groups/users
      • 🔴DELETE groups/users
    • 🔵GET courses
    • 🔵GET filters
    • 🟢POST login
    • â›”Standard Error Format
  • Webhook Reference
    • Standard Structure
    • Course Complete
    • Multi-Course Complete
  • OpenAPI Specification
Powered by GitBook
On this page
  • URL
  • Parameters
  • Responses
  1. API Reference
  2. Users

GET users

Fetches a list of users in the organisation.

URL

GET https://training.tapintosafety.com.au/api/v2/users

Parameters

Query Parameters

Name
Type
Description

page

integer

The page of results to select. Defaults to the first page. 50 results are returned per page.

curl https://training.tapintosafety.com.au/api/v2/users \
    -G -d "page=1"                                      \
    -H "Authorization: Bearer $APIKey"

Responses

200 - OK

A list of users from the database.

Name
Type
Description

entities

array

The list of the results returned.

┃ id

string

The Id of the user. Formatted as a GUID.

┃ email

string

The users email address.

┃ firstName

string

The users first name.

┃ lastName

string

The users last name.

┃ birthYear

integer

The users birth year. -1 if unspecified.

┃ gender

string

The selected gender of the user.

┃ role

string

The access level of the user for the organisation.

┃ organisationIdentifier

string

The custom identifier set by the organisation.

┃ hasAccess

boolean

Specifies if the user is currently allowed to access the organisations training.

┃ usingSeat

boolean

Whether the user currently using an unlimited use seat. False if the organisation is not on an unlimited use plan.

┃ accountType

string

Specifies the method used to create the user account.

┃ deletionStatus

string

Specifies whether the user account can be deleted, or the reason it cannot be.

â”— userFilters

string[]

A list of the filter answers the user currently has applied.

page

integer

The current page of results (Starts at 1).

entitiesReturned

integer

The number of courses in the entities array.

totalEntities

integer

The total entities across all pages for the current parameters.

links

array

A list of links relevant to the current request. No links are currently returned with this request.

┃ type

string

The type of the given link (e.g. Next Page, Previous Page).

┃ href

string

The URL to call for the given link.

â”— method

string

The HTTP method to use for the link (e.g. GET, POST).

{
  "entities": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "email": "alicesmith@example.com",
      "firstName": "Alice",
      "lastName": "Smith",
      "birthYear": 1980,
      "gender": "UNDISCLOSED",
      "role": "USER",
      "organisationIdentifier": "Employee#1282",
      "hasAccess": true,
      "usingSeat": true,
      "accountType": "API_CREATED",
      "deletionStatus": "SEAT_IN_USE",
      "userFilters": [
        "00000000-0000-0000-0000-000000000000"
      ]
    }
  ],
  "page": 1,
  "entitiesReturned": 1,
  "totalEntities": 2,
  "links": [
    {
      "type": "Next Page",
      "href": "https://training.tapintosafety.com.au/api/v2/users?page=2",
      "method": "GET"
    }
  ]
}
PreviousUsersNextGET users/seats

Last updated 9 months ago

🔵