30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

LearnDash List Group Leaders

learndash/list-group-leaders lists the users who lead a group.

Leaders manage the group and can see their members’ reporting.

At a glance

Abilitylearndash/list-group-leaders
ToolsetLearnDash — toolset/learndash
GroupLearnDash › Groups
RequiresAcrossAI Pro, plus LearnDash LMS active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Pro 0.9.16 and later

How it works

What a leader is actually allowed to do is settings-driven rather than fixed by the role. LearnDash has site-wide settings governing whether leaders can edit courses, manage membership, see detailed reporting or mark assignments — so “group leader” means different things on different sites.

That is worth knowing before assuming a leader can do something, and before adding one expecting them to.

Leading a group does not grant the leader the group’s course access. A leader who should also take the courses needs adding as a member as well, through learndash/manage-group-membership.

A leader normally needs the group_leader role to use their permissions at all, and learndash/manage-group-leaders warns when somebody is added who does not have it.

Input

NameTypeRequiredWhat it is
group_idintegerYesThe group.

What comes back

NameTypeWhat it is
leadersarrayThe users who lead the group.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Who manages this group?

It resolves to one call:

{
  "ability": "learndash/list-group-leaders",
  "parameters": {
    "group_id": 700
  }
}

Worth knowing

  • Leader permissions are site settings, not a fixed role definition.
  • Leading does not grant course access.
  • The group_leader role is usually required for the permissions to apply.
  • Read-only.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading