Skip to main content
Version: v5.6.1

opschain admin groups create

Included from Basic tier

Creates a local group with no members: create <group> (the v2 GroupService.CreateGroup verb). Members are optional at creation and are added later with add-member. A duplicate name refuses with the server's named error. Because local and directory group names share one namespace, creating a directory-named group prepares it for a group-named policy assignment covering both provider populations.

opschain admin groups create platform-admins
Created local group platform-admins (no members yet — 'admin groups add-member platform-admins <username>')

-o json|yaml prints the created group 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).

Exit codes: 0 on success, 1 when the server refused (duplicate name, bad name) or the token is rejected, 2 for usage — wrong argument count, or the connection errors on opschain docs cli/admin-users.

See also​

  • opschain docs cli/admin-groups-add-member — populating the group.
  • opschain docs cli/admin-groups-delete — the inverse.