π΅GET users
Fetches a list of users in the organisation.
URL
GET https://training.tapintosafety.com.au/api/v2/usersParameters
Query Parameters
page
integer
The page of results to select. Defaults to the first page. 50 results are returned per page.
email
string
An email address to filter the list of users by. This will search the both the username and email fields. The provided value can be a partial email.
orgId
string
A full or partial identifier to filter the list of users by. This will search the organisationIdentifier (Employee ID) field.
userId
string
A user ID to select a specific user to view. This must be formatted as a full and valid GUID. If a user does not exist with the given ID, the returned list will be empty.
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.
entities
array
The list of the results returned.
β id
string
The Id of the user. Formatted as a GUID.
β username
string
The username of the user. For SSO provisioned accounts this will be the Id passed by your SSO provider. For standard accounts this will be the same as the users email address.
β 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).
400 - Bad Request
Error Code: INVALID_MODEL
One or more parameters provided are invalid. See details for more information.
Last updated