LearnDash icon

LearnDash

Interact with the LearnDash LMS REST API

Actions60

User Groups → List

AI-generated

Summary

Retrieve a list of LearnDash groups assigned to a specific user.

Inputs

  • parentId (required) — The numeric ID of the user whose groups you want to list.
  • filters — Collection of optional search and pagination parameters such as search, perPage, page, order, orderBy, and status.
  • queryParametersJson — Optional JSON string of raw query parameters to append to the request.

Output shape

a list of items

Returns an array of group objects associated with the given user ID. Results can be paginated using the page and perPage parameters inside filters.

Examples

Example 1: List all groups assigned to user ID 123

Set Parent ID to 123.

Example 2: Search for groups containing 'Cohort' assigned to user ID 456

Set Parent ID to 456 and in Filters set Search to 'Cohort'.

Discussion