Files
zitadel/internal/command
Livio SpringandGitHub 0390e324e4 fix: do not send init mails for admins on instance setup (#11744)
# Which Problems Are Solved

Currently when setting up an instance, for example from the customer
portal through system api, an instance is created together with an
administrator. If no admin user is specified the default user from the
runtime configuration is automatically added.
For the new onboarding, we can to create instances without prompting the
user to set up a complete account right on start, but the current
behavior of the API prevents this, resp. the created account would
fallback to the default user or password.
By providing an empty `password` field in the `owner_password` in the
`AddInstanceRequest` or `huiman.password` in the
`CreateInstanceRequest`, it's already possible to create an account
without password. Until now this however ended up in an initial mail to
be sent to the user to finalize their account setup.

# How the Problems Are Solved

We simply set the `allowInitMail` to false in the `AddHumanCommand` for
setting up the admins. This will prevent an email to be sent out
immediately and gives us the possibility to use the invite flow later
on.

# Additional Changes

None

# Additional Context

- required for https://github.com/zitadel/website/issues/1611
- backport to v4.x
2026-03-30 15:31:51 +00:00
..
2026-02-25 06:33:28 +01:00
2026-03-17 12:54:27 +01:00
2026-03-17 12:54:27 +01:00
2026-03-17 12:54:27 +01:00
2024-11-04 10:44:51 +00:00
2026-03-17 12:54:27 +01:00
2026-03-17 12:54:27 +01:00
2026-03-17 12:54:27 +01:00
2024-09-11 10:53:55 +00:00
2024-04-11 09:16:10 +02:00
2024-01-17 10:16:48 +00:00
2024-01-17 10:16:48 +00:00
2026-03-11 08:25:21 +01:00
2026-03-17 12:54:27 +01:00
2025-06-27 17:25:44 +02:00
2025-07-15 13:38:00 +02:00
2025-07-15 13:38:00 +02:00
2025-10-29 10:07:35 +01:00
2025-10-29 10:07:35 +01:00
2026-01-27 15:11:56 +01:00
2026-03-11 08:25:21 +01:00
2025-10-29 10:07:35 +01:00
2025-10-29 10:07:35 +01:00
2025-10-29 10:07:35 +01:00
2026-03-11 08:25:21 +01:00
2026-03-11 08:25:21 +01:00