feat: allow machine user id to be set during creation (#8265)

# Which Problems Are Solved
Solves the problem described in #8264.

# How the Problems Are Solved

Added a UserID field which can be set during Machine User creation.

# Additional Changes

Added addition unit and integration tests to cover the cases where a
UserID field is present.

# Additional Context

- Closes #8264

Co-authored-by: Stefan Benz <46600784+stebenz@users.noreply.github.com>
This commit is contained in:
borisroman
2024-07-16 09:27:37 +02:00
committed by GitHub
parent 832a55a78e
commit 7d0c7e5b54
4 changed files with 94 additions and 0 deletions

View File

@@ -8182,6 +8182,15 @@ message AddMachineUserRequest {
zitadel.user.v1.AccessTokenType access_token_type = 4 [
(validate.rules).enum = {defined_only: true}
];
// optionally set your own id unique for the user.
optional string user_id = 5 [
(validate.rules).string = {min_len: 1, max_len: 200},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
max_length: 200;
example: "\"316b7fa5-0535-4adb-9e93-963a91b1010c\"";
}
];
}
message AddMachineUserResponse {