Stream Chat icon

Stream Chat

Server-side Stream Chat operations

User → Deactivate

AI-generated

Summary

Deactivate a user in Stream Chat by providing their unique User ID, disabling their access or participation in the chat service.

Inputs

  • User ID (required) — A unique identifier for the user to deactivate. Can be any string (e.g., "john_doe", "user123").

Output shape

a single JSON object representing the result of the deactivation request

Returns the Stream Chat API response for the deactivation action. Errors will be thrown or returned in an error envelope if deactivation fails.

Examples

Example 1: Deactivate user with ID "user123"

Set Resource to "User", Operation to "Deactivate", and User ID to "user123" in the node parameters.

Discussion