Home / Servers / Slack API / admin_users_set_expiration

Set an expiration for a guest user

An MCP tool from the Slack API server, hosted on mcp.hjlabs.in.

Set an expiration for a guest user [POST /admin.users.setExpiration]

Name on the gateway: slack_api__admin_users_set_expiration · may change things.

Parameters

NameTypeDescription
team_id requiredstringThe ID (T1234) of the workspace.
user_id requiredstringThe ID of the user to set an expiration for.
expiration_ts requiredintegerTimestamp when guest account should be disabled.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "slack_api__admin_users_set_expiration",
  "arguments": {
    "team_id": "…",
    "user_id": "…",
    "expiration_ts": 0
  }
}

Or connect the Slack API server directly, which lists 174 tools including this one:

Run in your terminal
claude mcp add --transport http hj-slack-api https://mcp.hjlabs.in/mcp/slack-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the set an expiration for a guest user tool with team_id set to ….

More from Slack API