Skip to main content

mr group children

List the direct children of a Group as lightweight tree-node records. Each node returns id, name, categoryName, childCount (the number of grandchildren under that child), and ownerId. Returns a JSON array ordered alphabetically by name. A group with no children returns an empty array.

Field names on tree-node responses are lowercase (id, name), not PascalCase — unlike full Group objects returned by group get.

Usage

mr group children <id>

Positional arguments:

  • <id>

Examples

List the direct children of group 42

mr group children 42

Extract child IDs as CSV

mr group children 42 --json | jq -r 'map(.id) | join(",")'

Flags

This command has no local flags.

Inherited global flags

FlagTypeDefaultDescription
--jsonboolfalseOutput raw JSON
--no-headerboolfalseOmit table headers
--pageint1Page number for list commands (default page size: 50)
--quietboolfalseOnly output IDs
--serverstringhttp://localhost:8181mahresources server URL (env: MAHRESOURCES_URL)

Output

Array of GroupTreeNode objects with id (uint), name (string), categoryName (string), childCount (int), ownerId (uint or null)

Exit Codes

0 on success; 1 on any error

See Also