This action requires the following credentials:

  • user — the username under which the action runs.
  • password — the password for that user.

CreateKafkaUsers — creates new SASL/SCRAM users in Kafka.

Request example

securityProtocol: SASL_PLAINTEXT
saslMechanism: PLAIN
users:
  - user: example_user_1
    password: example_password_user_1
    mechanism: SCRAM-SHA-256
    iterations: 4096
  - user: example_user_2
    password: example_password_user_2
    mechanism: SCRAM-SHA-256
    iterations: 4096

Request specification

NameRequiredDescriptionPossible values
securityProtocolYesProtocol for connecting to Kafka. For more information, see the Kafka documentationPLAINTEXT, SASL_PLAINTEXT, SASL_SSL
saslMechanismNoSASL authentication mechanism. Required when using the SASL_PLAINTEXT or SASL_SSL protocol. For more information, see the Kafka documentationPLAIN, SCRAM-SHA-256, SCRAM-SHA-512
usersYesSet of users to create-
users.userYesUsername to create-
users.passwordYesPassword for the user-
users.mechanismYesAuthentication mechanism for the userSCRAM-SHA-256, SCRAM-SHA-512
users.iterationsYesNumber of iterations used to hash the passwordFrom 4096 to 16384