Skip to content
Back to skills

Slack Member Fetch

ASecurity

Fetch Slack member information from a workspace or a specific Slack channel using the Slack Web API. Use when the user asks to list Slack members, get member profiles, fetch users from a channel, or export Slack member info. Supports workspace-wide lookup and channel-specific lookup. Not for sending Slack messages or editing Slack users.

  • 12 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 22, 2026
businesspythonbashapi

Works with

  • cursor
  • api

Security analysis

A100/100

Scanned September 22, 2026

npx -y skills add luokai0/ai-agent-skills-by-luo-kai --skill slack-member-fetch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Slack Member Fetch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Slack Member Fetch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/luokai0-slack-member-fetch/badge)](https://www.skillsdirectory.com/skills/luokai0-slack-member-fetch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: slack-member-fetch
description: Fetch Slack member information from a workspace or a specific Slack channel using the Slack Web API. Use when the user asks to list Slack members, get member profiles, fetch users from a channel, or export Slack member info. Supports workspace-wide lookup and channel-specific lookup. Not for sending Slack messages or editing Slack users.
metadata: openclaw
---

# Slack Member Fetch

This skill fetches member information from Slack.

## What it can do

- List members from the whole Slack workspace
- List members from a specific Slack channel by channel ID
- List members from a specific Slack channel by channel name
- Return structured JSON for downstream automation

## Required environment variable

```bash
export SLACK_BOT_TOKEN="xoxb-..."
```

## Recommended Slack scopes

- `users:read`
- `users:read.email`
- `conversations:read`

## Usage

Fetch all workspace members:

```bash
python3 scripts/fetch_slack_members.py --workspace
```

Fetch members from a channel by ID:

```bash
python3 scripts/fetch_slack_members.py --channel C0123456789
```

Fetch members from a channel by name:

```bash
python3 scripts/fetch_slack_members.py --channel-name general
```

Save output:

```bash
python3 scripts/fetch_slack_members.py --channel-name sales --out members.json
```

## Output shape

```json
{
  "ok": true,
  "source": "channel",
  "channel_id": "C0123456789",
  "channel_name": "sales",
  "count": 2,
  "members": [
    {
      "user_id": "U123",
      "username": "jane",
      "real_name": "Jane Doe",
      "display_name": "Jane",
      "email": "jane@example.com",
      "title": "Operations Manager",
      "timezone": "Asia/Manila",
      "is_admin": false,
      "is_owner": false,
      "is_bot": false,
      "deleted": false
    }
  ]
}
```

## Notes

- If email is missing, confirm the app has `users:read.email`
- If channel lookup fails, confirm the app has access to that channel and `conversations:read`
- For large workspaces, the script follows Slack cursor pagination automatically

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…