Users

List workspace members and retrieve user profiles in Slack through Shift.

tryshift-sh 21ac9b3 2 files · 3.5 KB Updated

File contents

Slack Users

Use this skill to list workspace members or look up a specific user's profile in Slack.

When to use

  • list members in a Slack workspace
  • look up a user's profile, status, or contact info
  • resolve a user ID to a display name

Authentication

This skill uses the connected slack provider credential for the current agent.

Invocation

All actions are called through Shift's Skill Router:

curl -X POST "$SHIFT_LOCAL_GATEWAY/skill-router/invoke" \
  -H "Content-Type: application/json" \
  -d '{
    "skillProvider": "slack",
    "skill": "users",
    "action": "list",
    "input": {
      "limit": 20
    }
  }'

Examples

List workspace members:

{
  "skillProvider": "slack",
  "skill": "users",
  "action": "list",
  "input": {
    "limit": 20
  }
}

Get a user profile:

{
  "skillProvider": "slack",
  "skill": "users",
  "action": "get",
  "input": {
    "user": "U1234567890"
  }
}

If the connection is missing, tell the user to configure Slack in Shift.

tryshift-sh/skills-store/tree/main/providers/slack/users commit 21ac9b3046

Frequently asked questions

npx skillmds@latest add tryshift-sh/users