Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

886 B
Raw Blame
import { createAction } from '@activepieces/pieces-framework';
import { slackAuth } from '../auth';
import { listUsers } from './list-users';
import { listUsersActionOutputSchema } from '../output-schemas';

export const slackListUsers = createAction({
  auth: slackAuth,
  name: 'list_users',
  classification: 'SEARCH',
  displayName: 'List Users',
  description: 'List all users in the workspace.',
  audience: 'ai',
  aiMetadata: {
    description:
      'Enumerates every member of the workspace, paging through all results, with toggles to include bots and disabled/deactivated users. Pick this to scan or enumerate users; use Get User, Find User by Email, or Find User by Handle when you already know the single user you want. Read-only and idempotent.',
    idempotent: true,
  },
  outputSchema: listUsersActionOutputSchema,
  props: listUsers.props,
  run: listUsers.run,
});