Skip to main content

mr groups list

List Groups, optionally filtered. Filter flags combine with AND. Comma-separated ID lists on --tags and --groups require all of the given IDs to match, not any of them: a group must carry every listed tag, and be related to or owned by every listed group. Date flags (--created-before, --created-after) expect YYYY-MM-DD or an RFC 3339 timestamp. Pagination via the global --page flag (default page size 50).

A zero --owner-id is ignored rather than treated as "no parent", so there is no root-group filter here; use group children 0 to list top-level groups. The JSON output is a flat array. Use group children <id> for tree-structured traversal.

--mrql applies an MRQL filter expression, with type = "group" implied (the same expression the list-page filter bar accepts). It uses the WHERE-clause grammar only -- no ORDER BY, LIMIT, GROUP BY, SCOPE, or $name parameters -- and composes with the other filter flags via AND. Example: --mrql 'descendants.category = "Archive"'.

Usage

mr groups list

Examples

List all groups (paged)

mr groups list

Filter by name prefix

mr groups list --name "Trips"

Filter by owner and tag

mr groups list --owner-id 5 --tags 3 --json | jq -r '.[].Name'

Filter with an MRQL expression (type = "group" implied)

mr groups list --mrql 'name ~ "Trips"'

Flags

FlagTypeDefaultDescription
--namestring``Filter by name
--descriptionstring``Filter by description
--tagsstring``Comma-separated tag IDs to filter by
--groupsstring``Comma-separated group IDs to filter by
--owner-iduint0Filter by owner group ID
--category-iduint0Filter by category ID
--urlstring``Filter by URL
--created-beforestring``Filter by creation date (before)
--created-afterstring``Filter by creation date (after)
--mrqlstring``MRQL filter expression (type = "group" implied), e.g. 'descendants.category = "Archive"'

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 Group objects with ID, Name, Description, Meta, OwnerId, CategoryId, CreatedAt/UpdatedAt

Exit Codes

0 on success; 1 on any error

See Also