Reference / Presence

Import Slack's member analytics as presence

import_slack_analyticsocmgr presence import-slack-analyticsPOST /v1/presence/slack-analyticsWRITE

Turn Slack's member analytics CSV (Admin → Analytics → Members → Export) into presence for this Slack connection's existing accounts, so readers who never post are counted. A one-day export records daily_active for each active member; a longer one records one date-only last_seen on each member's last-active day inside the range and nothing for the other days. Reads only the user id, days active and last active columns; email, name and every other column are ignored. Unknown ids are counted, never created. Enable presence on the connection first. Served calls read the file only from inside the import directory. dry_run reports what would be recorded.

Parameters

connectionIdstring (uuid)REQUIRED
filestringup to 4096 charsREQUIRED
fromstring (date)REQUIRED
tostring (date)REQUIRED
dry_runbooleandefault false

CLI flags

--file <path>REQUIRED

The exported CSV; any path at a terminal

--from <date>REQUIRED

First UTC day the export covers (YYYY-MM-DD)

--to <date>REQUIRED

Last UTC day the export covers (YYYY-MM-DD)

Also in Presence