Export members
Export the members matching a filter as CSV (one row per member, for a spreadsheet) or JSON (the full golden records with their identities). Small exports come back inline; anything larger is written to a file on the machine running this server and the path is returned, so a whole community does not land in the conversation. The export contains personal data — names, handles and email addresses — so filter it to what is actually needed.
Parameters
Which members to export — the same filters the Members screen applies, so an export matches what was on screen.
Free text over name, handle, company and email.
Only members with an identity on this source.
Only members with an account on this connection.
Only members whose golden record names this company.
An activity initiated since this instant; excludes reactions, joins, presence and profile updates.
Latest identity last_seen at or after this instant: profile observation and activity timestamps (including reactions/joins); excludes presence. Use contact.last_visited or list_presence for visits.
Defaults to false (community only). true selects staff only; "all" includes everyone.
Only members carrying one of these tags.
Only members in this organisation, by key or id.
Only the people in this segment now, by id or by name: the set its memberCount counts.
A filter tree in the segment language, compiled by the same compiler preview_segment uses. An invalid tree is refused as USAGE naming the path.
With segment, include members whose snoozed_until is in the future. False by default.
With segment: only the people whose status in that segment is this key — the same narrowing search_members takes, so an export is what the table showed. Refused as USAGE without segment.
Only these members — an explicit selection, at most 500. Combines with the rest by AND.
csv for a spreadsheet (one row per member), json for the full records. Defaults to csv.
CLI flags
json or csv
Write to a file instead of stdout
Only members with unredacted notes
Only members without unredacted notes
Only members matching this free text
Only members with an identity on this source
Only members with an account on this connection
Only members whose golden record names this company
Profile/activity last-seen timestamp at or after this date (excludes presence)
Member initiated an activity at or after this date
Include the workspace’s own staff (default: community only)
Exclude staff (the default; accepted for compatibility)
Only the workspace’s own staff
Only members carrying one of these tags
Only members in this organisation (key or id)
Only the people in this segment now (id or name)
Include snoozed segment members
With --segment: only people with this status in it
A filter tree in the segment language; see ocmgr segments fields
Only these members: an explicit selection, at most 10,000