LearnDash icon

LearnDash

Interact with the LearnDash LMS REST API

Actions60

Group Users → Add

AI-generated

Summary

Add one or more users to a LearnDash group by specifying the parent group ID and the user IDs to add.

Inputs

  • Parent ID (required) — The ID of the parent group resource to which users will be added.
  • Item IDs (required) — One or more user IDs to add to the group.

Output shape

a list of the updated group-user relationship records confirming the additions

Multiple users can be added in a single operation by providing multiple IDs. The output reflects the response from LearnDash after adding the users to the group.

Examples

Example 1: Add users with IDs 12 and 34 to group 56

Set Parent ID to '56'; add Item IDs '12' and '34'.

Discussion