fix: add details to ListUsers for user results (#8255)

# Which Problems Are Solved

In User v2 API, the ListUsers endpoint doesn't provide the information
to which organization the user belongs to.

# How the Problems Are Solved

Add the details to the user results from the ListUsers endpoint, so that
the OrgID is also included as ResourceOwner.

# Additional Changes
 
None

# Additional Context

Closes #8172
This commit is contained in:
Stefan Benz
2024-07-10 17:49:35 +02:00
committed by GitHub
parent 19a8ab02ad
commit fb2d4545b9
5 changed files with 39 additions and 27 deletions

View File

@@ -183,6 +183,7 @@ message User {
example: "\"d654e6ba-70a3-48ef-a95d-37c8d8a7901a\"";
}
];
zitadel.object.v2beta.Details details = 8;
UserState state = 2 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "current state of the user";

View File

@@ -989,6 +989,7 @@ message GetUserByIDRequest {
}
message GetUserByIDResponse {
//deprecated: details is moved into user
zitadel.object.v2beta.Details details = 1;
zitadel.user.v2beta.User user = 2;
}