fix: add InUserIDs query to query of user grants (#10741)

# Which Problems Are Solved

Currently there is only the option to either filter for all usergrants
of an organization or the usergrants of a singluar user.

# How the Problems Are Solved

Add the option to provide a list of userIDs to query user grants.

# Additional Changes

Fixed internal typo for function.

# Additional Context

Closes #9675
This commit is contained in:
Stefan Benz
2025-10-07 04:56:20 +00:00
committed by GitHub
parent 4aac34d93b
commit 6da380628d
6 changed files with 67 additions and 2 deletions
@@ -108,6 +108,8 @@ message AuthorizationsSearchFilter {
// Search for authorizations by the ID of the project grant the user was granted the authorization for.
// This will also include authorizations granted for project grants of the same project.
zitadel.filter.v2beta.IDFilter project_grant_id = 11;
// Search for authorizations by the IDs of the users who were granted the authorizations.
zitadel.filter.v2beta.InIDsFilter in_user_ids = 12;
}
}
+10
View File
@@ -829,6 +829,7 @@ message UserGrantQuery {
UserGrantProjectNameQuery project_name_query = 12;
UserGrantDisplayNameQuery display_name_query = 13;
UserGrantUserTypeQuery user_type_query = 14;
UserGrantInUserIDsQuery in_user_ids_query = 15;
}
}
@@ -850,6 +851,15 @@ message UserGrantUserIDQuery {
];
}
message UserGrantInUserIDsQuery {
repeated string in_user_ids = 1 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "the IDs of the users to include"
example: "[\"69629023906488334\",\"69629023906488335\"]";
}
];
}
message UserGrantWithGrantedQuery {
bool with_granted = 1;
}