Skip to main content
Version: v5.7.0

opschain admin groups list

Included from Basic tier

Lists the local groups and their members — the memberships OpsChain itself stores, not the groups a provider reports at sign-in (a user's effective set is on admin users show). Since the transport is the v2 GroupService.ListGroups catalog, filtered to its local-source rows so the view and -o json shape are unchanged; the provider snapshot groups the catalog also carries are readable via opschain api v2 call GroupService/ListGroups.

opschain admin groups list
GROUP MEMBERS
platform-admins alice,emergency.admin

-o, --output json|yaml emits the groups as a machine document.

Flags​

FlagMeaning
--server <url>Server base URL (default: the active context / OPSCHAIN_SERVER).
--auth-token <token>Admin bearer token override (default: your opschain login session, then $OPSCHAIN_ADMIN_TOKEN, then the token stored by opschain admin login).
--filter <column>[!]=<value>Keep only rows matching the term (repeatable; terms AND). Columns are the printed table headers lowercased (spaces/dashes fold to _); * wildcards match the whole cell case-insensitively, != negates, commas mean any-of. Applied client-side. Grammar: opschain docs cli.

Exit codes: 0 on success, 1 when the call fails or the token is rejected, 2 for the connection usage errors on opschain docs cli/admin-users.

See also​

  • opschain docs cli/admin-groups-add-member — changing what this lists.