Reference / Members

Export members

export_membersocmgr exportGET /v1/exportREAD

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

filterobject

Which members to export — the same filters the Members screen applies, so an export matches what was on screen.

has_notesboolean
querystring

Free text over name, handle, company and email.

source"self" | "github" | "slack" | "discourse" | "vanilla" | "bevy" | "gainsight-cc" | "gradual" | "bettermode" | "circle" | "flarum" | "verint" | "dev" | "stackoverflow" | "meetup" | "luma" | "discord" | "generic" | "csv" | "enrichment"

Only members with an identity on this source.

connectionstring (uuid)

Only members with an account on this connection.

companystring

Only members whose golden record names this company.

contributed_sincestring (date-time)

An activity initiated since this instant; excludes reactions, joins, presence and profile updates.

seen_sincestring (date-time)

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.

teamboolean | "all"

Defaults to false (community only). true selects staff only; "all" includes everyone.

tagsstring[]

Only members carrying one of these tags.

organisationstring

Only members in this organisation, by key or id.

segmentstring

Only the people in this segment now, by id or by name: the set its memberCount counts.

filterobject

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.

show_snoozedboolean

With segment, include members whose snoozed_until is in the future. False by default.

segment_statusstring

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.

member_idsstring (uuid)[]up to 500

Only these members — an explicit selection, at most 500. Combines with the rest by AND.

format"csv" | "json"

csv for a spreadsheet (one row per member), json for the full records. Defaults to csv.

CLI flags

--format <format>default json

json or csv

--out <file>

Write to a file instead of stdout

--has-notes

Only members with unredacted notes

--no-has-notes

Only members without unredacted notes

--query <text>

Only members matching this free text

--source <kind>

Only members with an identity on this source

--connection <id>

Only members with an account on this connection

--company <name>

Only members whose golden record names this company

--seen-since <date>

Profile/activity last-seen timestamp at or after this date (excludes presence)

--contributed-since <date>

Member initiated an activity at or after this date

--teamdefault

Include the workspace’s own staff (default: community only)

--no-team

Exclude staff (the default; accepted for compatibility)

--only-team

Only the workspace’s own staff

--tag <name...>

Only members carrying one of these tags

--organisation <key>

Only members in this organisation (key or id)

--segment <segment>

Only the people in this segment now (id or name)

--show-snoozed

Include snoozed segment members

--segment-status <key>

With --segment: only people with this status in it

--filter <json>

A filter tree in the segment language; see ocmgr segments fields

--member <id...>

Only these members: an explicit selection, at most 10,000

Also in Members