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. Groups

POST groups/users

Add a user to an organisation group.

URL

POST https://training.tapintosafety.com.au/api/v2/groups/{Group Id}/users

Parameters

URL Parameters

Name
Description

Group Id*

* required

Body Parameters

Name
Type
Description

userId*

string

The Id of the user to add to the group. Formatted as a GUID.

* required

curl https://training.tapintosafety.com.au/api/v2/groups/00000000-0000-0000-0000-000000000000/users \
    -d '{"userId":"00000000-0000-0000-0000-000000000000"}'    \
    -H "Authorization: Bearer $APIKey"                        \
    -H "Content-Type: application/json" 

Responses

A 204 response will be received even if the specified user is already part of the given group.

204 - OK

No response body.

400 - Bad Request

Error Code: INVALID_MODEL

userId has not been specified.

400 - Bad Request

Error Code: NO_GROUPS_AVAILABLE

Your organisation has not created any groups to add users to.

400 - Bad Request

Error Code: GROUP_NOT_FOUND

A group could not be found with the specified Group Id.

400 - Bad Request

Error Code: USER_NOT_FOUND

A user could not be found with the specified userId.

PreviousGET groupsNextDELETE groups/users

Last updated 9 months ago

The Id of the group to add the given user to. Formatted as a GUID. A list of groups can be found using .

🟢
GET groups