Files
zitadel/internal/command
4aacfa842f feat: set metadata at the user level in CreateUser request (#11719)
# Which Problems Are Solved

Currently, metadata can be set/updated only for human users, but it
should be available also for service accounts (machine users).

# How the Problems Are Solved

This is achieved by:
- adding a metadata field at the root level in `CreateUserRequest`,
which makes it available for both `human` and `machine` user types
- returning an error when both the root level and human-level `metadata`
fields are set in the `CreateUserRequest`
- setting `human` and `machine` metadata from the root `metadata` field
in the server layer
- pushing `user.metadata.set` event during machine user creation in the
command layer
- adding integration tests

# Additional Changes
N/A

# Additional Context
- Related to https://github.com/zitadel/zitadel/issues/11369

---------

Co-authored-by: Vitor Bari Buccianti <[email protected]>
Co-authored-by: Silvan <[email protected]>
2026-03-03 08:34:43 +00:00
..
2026-02-25 06:33:28 +01:00
2025-07-15 13:38:00 +02:00
2025-07-15 13:38:00 +02:00
2024-11-04 10:44:51 +00:00
2026-02-25 06:33:28 +01:00
2025-07-15 13:38:00 +02: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
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
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-02-25 06:34:17 +01:00