conduktor.io ↗

Kafka AlterUserScramCredentials Response Wire Format v0 — Binary Protocol Layout

What is AlterUserScramCredentials?

Creates, updates, or removes SCRAM passwords via kafka-configs.sh --alter. Credentials are stored in ZooKeeper or KRaft metadata and take effect immediately without broker restart.

Wire Diagram

Response Header · flexible
message_size int32 · 4B
correlation_id int32 · 4B
tagged var
AlterUserScramCredentialsResponse v0
ThrottleTimeMs int32 · 4B
Results array
tagged var
User string (compact)
ErrorCode int16 · 2B
ErrorMessage? string (compact)
tagged var

Schema & Example

Schema
{
  "ThrottleTimeMs": int32,
  "Results": [{
      "User": string,
      "ErrorCode": int16,
      "ErrorMessage": string?
  }]
}
Example
{
  "ThrottleTimeMs": 0,
  "Results": [{
      "User": "alice",
      "ErrorCode": 0,
      "ErrorMessage": "NETWORK_EXCEPTION"
  }]
}