LearnDash icon

LearnDash

Interact with the LearnDash LMS REST API

Actions60

User Groups → Remove

AI-generated

Summary

Remove one or more groups from a LearnDash user.

Inputs

  • parentId (required) — The ID of the user (parent resource) from whom groups will be removed.
  • itemIds — Collection of group IDs to remove from the specified user.

Output shape

a list of items

Returns the REST API response from LearnDash for the ldlms/v2/users/{parentId}/groups endpoint, typically containing the updated list or status of group associations for the user.

Examples

Example 1: Remove a single group from a user

Set Parent ID to "105" and add Item ID "12" under Item IDs.

Discussion